Select all occurrences of selected word in VSCode

前端 未结 8 1771
不思量自难忘°
不思量自难忘° 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 09:03

    In my MacOS case for some reason Cmd+Shift+L is not working while pressing the short cut on the keyboard (although it work just fine while clicking on this option in menu: Selection -> Select All Occurences). So for me pressing Cmd+FN+F2 did the trick (FN is for enabling "F2" obviously).

    Btw, if you forget this shortcut just do right-click on the selection and see "Change All Occurrences" option

提交回复
热议问题