Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Mastering Multi-Cursor Editing

March 1, 2026

If you find yourself manually editing ten lines of code to add the same prefix or change a variable name, you’re working too hard. In VS Code, try using Cmd+D (Mac) or Ctrl+D (Windows) to select the next occurrence of your current selection. Even better, hold Option (Mac) or Alt (Windows) and click in multiple spots to create independent cursors. It turns repetitive refactoring into a five-second task and makes you feel like a wizard in the process.