Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
The Power of Multi-Cursor Magic
February 20, 2026
If you're still manually renaming variables or editing identical lines of code one by one, your life is about to get much easier. In VS Code, you can hit Cmd+D (or Ctrl+D on Windows) to select the next occurrence of whatever word your cursor is on. Keep hitting it to select more, then just start typing to edit all of them at once.
For even more control, hold Alt and click anywhere to drop a new cursor manually. It turns tedious refactoring tasks—like turning a list of strings into an object—into a five-second win. Once you get the muscle memory down, you'll wonder how you ever coded without it.