Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Speed Up Formatting with VS Code's Multi-Cursor Modifier
May 26, 2026
If you’re still manually editing repetitive lines of code one by one, it's time to unlock the power of multi-cursors. In VS Code, holding `Alt` (on Windows/Linux) or `Option` (on macOS) while clicking lets you place cursors in multiple locations simultaneously.
Even better, you can select a variable, press `Ctrl+D` (or `Cmd+D` on Mac) to select its next occurrence, and edit them all at once. It’s like search-and-replace, but with instant visual feedback and much less risk of breaking unrelated code.