Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

VS Code's Hidden Superpower: Multi-Cursor Editing

February 9, 2026

If you're manually changing the same variable name or pattern across multiple lines, stop! VS Code has a killer feature that will instantly boost your refactoring speed. Select the first instance you want to change, then hit Ctrl+D (or Cmd+D on Mac) repeatedly. Each press selects the next matching instance. Now, whatever you type changes all selections simultaneously. This trick alone saves me hours every month when dealing with boilerplate code or quick variable renames.