Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Speed Up Repetitive Edits with VS Code's Multi-Cursor Magic

May 24, 2026

Stop manually editing dozens of lines of redundant HTML or JSON. In VS Code, you can quickly place cursors on all occurrences of a selected word by pressing `Ctrl+D` (Windows/Linux) or `Cmd+D` (macOS) repeatedly. If you want to select every instance in the entire file instantly, use `Ctrl+Shift+L` or `Cmd+Shift+L`.

Once selected, you can type, delete, or navigate all lines simultaneously. It's like having a macro without any of the setup, transforming what would be a tedious ten-minute chore into a two-second keystroke.