DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

The Hidden Power of Multi-Cursor Selection in VS Code

If you need to change the same variable name or add a missing semi-colon to the end of multiple lines, stop copying and pasting! Instead, try using VS Code's multi-cursor selection. Select the first instance of the word, then hit Ctrl+D (Windows/Linux) or Cmd+D (Mac) repeatedly. VS Code intelligently selects the next occurrence, placing a cursor at each spot. Now you can type, delete, or modify simultaneously across all selected locations. It’s a massive time saver for quick refactoring tasks.

Top comments (0)