Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select all occurrences of current selection

In visual studio code there is a command editor.action.selectHighlights Ctrl+Shift+L. It will select all occurrences of current selection.

Is this also possible in Visual Studio Community 2017?

like image 528
spassvogel Avatar asked Sep 06 '18 09:09

spassvogel


People also ask

How do you select all occurrences?

Ctrl + Shift + L to select all occurrences of current selection.

How do you select all occurrences in VSCode?

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.

How do I select all in WebStorm?

Multi-cursor selection in WebStorm: Select next occurrence of the current word or selection: Ctrl+G on macOS and Alt+J on Windows and Linux. Select all occurrences: Ctrl+Cmd+G / Shift+Ctrl+Alt+J.


2 Answers

Ctrl+Shift+Alt+,

Keyboard setting: Edit.InsertCaretsatAllMatching

Also a second way to avoid remembering a shortcut can be found via VS2017 menu. enter image description here

enter image description here

like image 124
vfle Avatar answered Nov 15 '22 05:11

vfle


It's SHIF + ALT + Ç for Visual Studio 2022.

Please check the attached screenshot.

enter image description here

like image 43
rom5jp Avatar answered Nov 15 '22 05:11

rom5jp