visual-studio-codeeditorkeyboard-shortcuts

Select all occurrences of selected word in VSCode


Are there any tricks/extensions to select all instances of selected word(s) in Visual Studio Code to facilitate editing or deleting those instances without search and replace?

Perhaps something similar to Alt+F3 in Sublime Text?


Solution

  • Select All Occurrences of Find Match editor.action.selectHighlights.

    Ctrl+Shift+L

    Cmd+Shift+L or Cmd+Ctrl+G on Mac