I often use Alt + Shift + arrow to have the cursor on multiple lines in SSMS and e.g. ISE for PowerShell. But when I do this in Visual Studio Code or Azure Data Studio the functionality is different and the line gets duplicated.
How can I have this multiple cursors in Visual Studio Code?
The following ways are available:
In most other IDEs the same shortcuts are available with Ctrl/Cmd instead of Alt. You can change it by adding "editor.multiCursorModifier": "ctrlCmd" to your settings.
The shortcut you are attempting is actually used for line manupulation, also very handy:
As a general advice, you can open the command palette and just type what you are trying to do, it will show the shortcut at its right. For instance, opening it (with Shift+Ctrl/Cmd+P) and typing shortcut reference will offer you the option to open the list of all available shortcuts.
Both of the below will work, which one I use depends on the use case.
Alt + Click
Ctrl + Alt + Arrow
Additionally a helpful list of default hotkeys for vsc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With