Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Speed Up Refactoring with Multi-Cursors

February 22, 2026

If you’re still manually renaming variables across a file, try using `Cmd+D` (or `Ctrl+D` on Windows) to select the next occurrence of a word. You can quickly highlight several instances and type over them all at once. For even more control, hold `Option` (or `Alt`) and click anywhere to drop multiple cursors.

It feels like a superpower when you're dealing with repetitive boilerplate or mapping data objects. Just be careful—it's easy to accidentally edit something off-screen if you're too aggressive with the "Select All Occurrences" command!