xxxxxxxxxx
# for windows
Alt+Click
# or
Ctrl+Alt+down
Ctrl+Alt+up
#for mac
command+option+down
command+option+up
xxxxxxxxxx
//Spawn multiple cursors in Visual Studio Code (OS: Windows)
alt + left mouse click
xxxxxxxxxx
# windows
Alt+Click
Ctrl+Alt+down
Ctrl+Alt+up
# mac
command+option+down
command+option+up
# linux
Alt+Click
Ctrl+Shift+down
Ctrl+Shift+up
xxxxxxxxxx
Multi cursor improvements
Ctrl+D (Cmd+D on Mac) selects next occurrence of word under cursor or of the current selection
Ctrl+K Ctrl+D moves last added cursor to next occurrence of word under cursor or of the current selection
The commands use matchCase by default. If the find widget is open, then the find widget settings (matchCase / matchWholeWord) will be used for determining the next occurrence
Ctrl+U (Cmd+U on Mac) undoes the last cursor action, so if you added a cursor too many or made a mistake, you can press Ctrl+U (Cmd+U on Mac) to go back to the previous cursor state. Adding cursor up or down (Ctrl+Alt+Up / Ctrl+Alt+Down) (Cmd+Alt+Up / Cmd+Alt+Down on Mac) now reveals the last added cursor to make it easier to work with multiple cursors on more than 1 viewport height at a time (i.e. select 300 lines and only 80 fit in the viewport).
xxxxxxxxxx
You can use the "Multi-Cursor Mode" feature in Visual Studio Code to write in multiple lines at the same time. To do this, follow these steps:
1.Place your cursor at the location where you want to start your first cursor.
2.Press and hold the Alt key.
3.lick on other locations where you want to place additional cursors.
With Multi-Cursor Mode, you can edit multiple lines at the same time and make changes simultaneously. To exit Multi-Cursor Mode, simply press Esc.
Multible Cursor in VSCode
xxxxxxxxxx
Select some text and press Ctrl + Shift + L on Linux and Windows, or Cmd + Shift + L on macOS
xxxxxxxxxx
ctrl + alt + click
go to for more tricks:
https://www.meziantou.net/visual-studio-tips-and-tricks-multi-line-and-multi-cursor-editing.htm