Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Speed Up Repetitive Editing with VS Code Multi-Cursors
May 22, 2026
If you find yourself manually editing ten lines of HTML or renaming variables in a mock data array one by one, stop! VS Code has a super handy shortcut to place cursors at all occurrences of your current selection. Just highlight the word you want to change and press `Ctrl+D` (Windows/Linux) or `Cmd+D` (macOS) to select the next match. Keep pressing it to add more cursors, then type once to edit them all simultaneously.
If you want to select *every* occurrence in the file instantly, use `Ctrl+Shift+L` or `Cmd+Shift+L`. It turns tedious, error-prone editing into a five-second task.