Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Master the multi-cursor flow in VS Code

April 5, 2026

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!