Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Mastering the Multi-Cursor Flow
February 23, 2026
If you're still manually editing ten lines of similar code one by one, it's time to embrace the power of multi-cursors. In VS Code, hitting `Cmd + D` (Mac) or `Ctrl + D` (Windows) while a word is selected will highlight the next occurrence and add a cursor there. This allows you to rename variables or update repetitive HTML tags in seconds rather than minutes.
To take it even further, use `Opt + Click` (Mac) or `Alt + Click` (Windows) to place cursors anywhere on the screen. It feels like magic once the muscle memory kicks in, and it significantly reduces the friction of bulk refactoring.