Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Stop Copy-Pasting: Master Multi-Cursor Selection in VS Code

February 2, 2026

If you're renaming variables or repeating similar lines of code, stop doing it one line at a time! In VS Code, mastering multi-cursor selection is a huge productivity gain. The fastest way to select sequential, matching words is to select the first occurrence, then repeatedly hit `Ctrl+D` (or `Cmd+D` on Mac) to select the next matches. If you need to place cursors non-sequentially, hold down `Alt` (or `Option` on Mac) and click wherever you need an additional cursor. This turns a five-minute refactor into a 30-second keyboard sprint.