Most devs know that pressing Ctrl+D (or Cmd+D on macOS) selects the next occurrence of the highlighted word. Itβs a game-changer for quick renaming. But what happens when you accidentally select a variable you didn't want to change?
Instead of hitting escape and starting all over, you can use Ctrl+K followed by Ctrl+D (or Cmd+K then Cmd+D on Mac). This nifty combo skips the currently highlighted occurrence and jumps straight to the next one, keeping your other selections intact. It's a massive time-saver when refactoring.
Top comments (0)