Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Mastering the multi-cursor in VS Code
April 8, 2026
If you find yourself manually changing the same variable name or adding quotes to a list of strings, you're working too hard. In VS Code, hitting Cmd+D (or Ctrl+D on Windows) while a word is selected will highlight the next occurrence and add an extra cursor there. You can then type, delete, or format all those spots simultaneously.
It’s one of those "magic" moments that saves a ton of repetitive keystrokes every single day. If you accidentally select too many, just hit Cmd+U to undo the last cursor selection. Once you get the muscle memory down, you'll wonder how you ever coded without it.