Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent shortcut for CTRL + D ("add selection to next location match") of VSCode in Visual Studio?

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 VSCode shortcut

like image 625
Maicon Heck Avatar asked Jun 06 '18 18:06

Maicon Heck


People also ask

What Ctrl D does in VS Code?

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.

Why Ctrl D is not working in VS Code?

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.

Where is the shortcut key in VS Code?

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).


1 Answers

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.

like image 137
Maicon Heck Avatar answered Sep 18 '22 18:09

Maicon Heck