DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

VS Code's Hidden Superpower: Multi-Cursor Editing

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.

Top comments (0)