DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

Boost Your Speed with Multi-Cursor Editing

If you are manually editing ten lines of similar code one by one, you're working harder than you need to. In VS Code, you can hit Cmd+D (macOS) or Ctrl+D (Windows) to select the next occurrence of the word your cursor is currently on. This is a game-changer for renaming local variables or updating repetitive HTML tags without a full Find-and-Replace. For even more precision, hold Option (macOS) or Alt (Windows) and click in multiple spots to place cursors manually. This allows you to type in several places at once, making it incredibly easy to add prefixes, suffixes, or bulk formatting to a list of items in seconds.

Top comments (0)