DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

Master the multi-cursor flow in VS Code

If you're still manually renaming variables one by one across a file, you're working too hard. In VS Code, hitting Cmd+D (or Ctrl+D) while a word is selected will highlight the next occurrence and add a new cursor. It’s a game-changer for refactoring small blocks of code or repetitive HTML tags. If you want to grab every instance at once, use Cmd+Shift+L. Just be careful—with great power comes the responsibility of not accidentally renaming a substring you didn't mean to touch!

Top comments (0)