Select all occurrences of the selected word in VSCode

Is there any trick or extension to select all instances of the selected word in Visual Studio code to make it easy to edit or delete these instances without searching and replacing, for example, Alt+ F3in sublime text

+157
source share
4 answers

Select "All occurrences of a match finder editor.action.selectHighlights. "

Ctrl+ Shift+L

Cmd+ Shift+ LOr Cmd+ Ctrl+ Gon Mac

+324
source

According to the key bindings for Visual Studio code, there are:

Ctrl + Shift + L,

Ctrl + F2,

VS Code (" View → Command Palette) (" File > Preferences > Keyboard Shortcuts).

+42

Ctrl + F2 Windows 10.

Ctrl + Shift + L

0

, ?

-, :

  1. Ctrl + F ,
  2. ESC - ( Ctrl + Shift + L )

  1. just select these letters with the mouse or keyboard ( Shift+ arrows)

Now that the mouse cursor is blinking on the first selection , using a few more key bindings (thanks for the j08691 link ), you can:

  • Ctrl+ Dselect next occurrence
  • Ctrl+ K+ Ctrl+ D To skip next occurrence
  • Ctrl+ U cancel one of the listed
0
source

Source: https://habr.com/ru/post/1686791/


All Articles