DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

Supercharge Your Editing with VS Code's Multi-Cursor Magic

If you're still manually renaming variables or editing identical lines of code one by one, it's time to embrace multi-cursor editing. In VS Code, simply highlight a word and hit Ctrl+D (or Cmd+D on Mac) to automatically select the next occurrence of that word. Each press adds a new cursor, allowing you to edit all of them simultaneously.

If you want to select all occurrences at once, use Ctrl+F2 (or Cmd+F2). It's a massive timesaver that keeps you in the flow and prevents the tedious copy-paste cycle.

Top comments (0)