VSCode has a very useful shortcut: CTRL + D
- Add Selection To Next Find Match.
What is the equivalent in Visual Studio?
Below an example:
VSCode has a very useful shortcut: CTRL + D
- Add Selection To Next Find Match.
What is the equivalent in Visual Studio?
Below an example:
This is natively available starting in Visual Studio 2017 under the command(s):
Edit.InsertNextMatchingCaret
Edit.InsertCaretsatAllMatching
You can change the shortcut in keyboard options if you want.
Visual Studio Code | Visual Studio |
---|---|
Ctrl + D editor.action.addSelectionToNextFindMatch Add Selection to Next Find Match |
Shift + Alt + . Edit.InsertNextMatchingCaret |
Ctrl + Shift + L editor.action.selectHighlights Select All Occurrences of Find Match |
Shift + Alt + ; Edit.InsertCaretsAtAllMatching |
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.
As far as i know, there is no equivalent directly in Visual Studio, but you can use Select Next Occurrence extension that mimics this behavior.