DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

VS Code's Hidden Multi-Cursor Superpower

Ever need to change the same variable name in 10 different places simultaneously? Stop copying and pasting! In VS Code, select the first instance, then hit Ctrl+D (Windows/Linux) or Cmd+D (Mac) repeatedly. Each press selects the next match and adds a cursor. Now, type once, and modify everything at the same time. This simple shortcut is an absolute lifesaver when refactoring large blocks of boilerplate code.

Top comments (0)