DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

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

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.

Top comments (0)