How to Batch Edit Duplicate Code in Visual Studio Code

1. Select the text Highlight the string or code snippet you want to change.



2. Use the shortcut With the text selected, press the following shortcut to select all occurrences:

  • Windows: Ctrl + Shift + L

  • Mac: Cmd + Shift + L



3. Type your new text Simply type the new string, and all the selected duplicates will be updated simultaneously.





댓글

이 블로그의 인기 게시물

How to Open, Set, and Save Environment Variables (Windows, macOS, Linux)

My Experience Publishing a React Native App as an iOS Developer

How to Fix Auto Layout Constraint Conflicts and Spacing Issues (Question, Image, and Options)