Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Speed Up Formatting with Multi-Cursor Magic in VS Code

May 22, 2026

Writing repetitive code or manually editing a long list of variables can feel like a chore. Instead of clicking and typing on every single line, leverage VS Code’s multi-cursor power. You can hold `Alt` (or `Option` on Mac) and click in multiple places to type in all of them at once.

Even better, if you want to edit all occurrences of a highlighted word, just press `Ctrl + D` (or `Cmd + D` on Mac) repeatedly to select the next matches one by one. If you want to select *all* matches instantly, use `Ctrl + Shift + L` (or `Cmd + Shift + L`). It's a massive time-saver for quick refactoring.