Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Master Multi-Cursor Editing in VS Code
February 24, 2026
Stop manually editing ten lines of similar code one by one. In VS Code, you can hit Cmd+D (or Ctrl+D) to select the next occurrence of the current word. If you want to place a cursor at the end of every selected line, use Option+Shift+I.
It is a massive time-saver for renaming local variables that aren't quite worth a full refactor tool or for wrapping a list of plain text strings in quotes quickly. Once you get the muscle memory down, you'll wonder how you ever coded without it.