Update Visual Studio 2017+
This is natively available starting in Visual Studio 2017 under the command(s):
- <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>.</kbd> -
Edit.InsertNextMatchingCaret
- <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>;</kbd> -
Edit.InsertCaretsatAllMatching
You can change the shortcut in keyboard options if you want.
Comparison VS Code and Visual Studio
| Visual Studio Code | Visual Studio |
|---------|---------------|
| <kbd>Ctrl</kbd> + <kbd>D</kbd> <br/><br/> editor.action.addSelectionToNextFindMatch
<br/> Add Selection to Next Find Match | <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>.</kbd> <br/><br/> Edit.InsertNextMatchingCaret
<br/> <br/> |
| <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd> <br/><br/> editor.action.selectHighlights
<br/> Select All Occurrences of Find Match | <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>;</kbd> <br/><br/> Edit.InsertCaretsAtAllMatching
<br/> <br/> |