Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Speed Up Refactoring with Multi-Cursor Power
May 14, 2026
If you find yourself manually changing the same variable name or adding quotes to a list of strings line by line, you're working too hard. VS Code has a brilliant multi-cursor feature that lets you edit dozens of lines at once. On Windows/Linux, use 'Ctrl + Alt + Down/Up', or 'Cmd + Option + Down/Up' on Mac to stack cursors vertically. My favorite shortcut, though, is 'Cmd/Ctrl + D'. Highlight a word, hit that shortcut, and it selects the next occurrence of that same word. It's much faster and safer than a global find-and-replace when you only want to change a few instances in a specific scope.