DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

VS Code's Hidden Superpower: Multi-Cursor Magic

Stop copying and pasting the same variable name multiple times! If you need to change occurrences of a word simultaneously, try selecting the word and hitting Ctrl+D (or Cmd+D on Mac). Each press selects the next instance, allowing you to edit them all at once. For more surgical strikes, hold Alt (or Option on Mac) and click exactly where you want a new cursor to appear. It's a game-changer for refactoring small blocks of code quickly and efficiently.

Top comments (0)