Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
The Magic of Multi-Cursor Editing
February 13, 2026
If you're still manually renaming variables or wrapping lists of strings in quotes one by one, it’s time to embrace the multi-cursor. In VS Code, hitting Cmd+D (or Ctrl+D on Windows) while a word is selected will find and select the next occurrence. It’s a game-changer for repetitive tasks that aren't quite complex enough for a full Regex search-and-replace.
You can also use Option+Click to place cursors anywhere you want. Once you get the hang of it, you'll feel like you're playing a piano on your keyboard, making broad structural changes to your code in seconds without the risk of a global replace gone wrong.