Select all occurrences of selected word in VSCode

前端 未结 8 1818
不思量自难忘°
不思量自难忘° 2020-12-12 08:21

Are there any trick or extension to select all instances of selected word in visual studio code, to facilitate editing or deleting those instances without search and replace

8条回答
  •  生来不讨喜
    2020-12-12 08:55

    According to Key Bindings for Visual Studio Code there's:

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

    and

    Ctrl+F2 to select all occurrences of current word

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

提交回复
热议问题