Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
VS Code Magic: Select All Occurrences
April 10, 2026
Stop manually clicking every instance of a variable name to change it. If you highlight a word and hit Cmd+Shift+L (or Ctrl+Shift+L on Windows), VS Code automatically places a cursor at every occurrence in the file. It’s a game-changer for quick refactoring when you don't want to trigger a full symbol rename. Just be careful—it’s a literal string match, so make sure you aren't accidentally editing parts of a longer word!