VSCode has a very useful shortcut: CTRL + D
- Add Selection To Next Find Match.
What is the equivalent in Visual Studio?
Below an example:
Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
The main step are: File > Preferences > Keyboard Shortcuts. type "copy line",then you will see the related shortcuts. remember the new shortcut(e.g. Shift + Alt + Down) or modify the shortcut to ctrl + D.
You can view the currently active keyboard shortcuts in VS Code in the Command Palette (View -> Command Palette) or in the Keyboard Shortcuts editor (File > Preferences > Keyboard Shortcuts).
I figure out that this feature (Multi-Caret Support) was added through an update in Visual Studio 2017.
With Ctrl + Alt + Click you can add multiple insertion points or carets, as shown here here.
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