Add the next match

Add a cursor to the next identical word and edit them together

Blind test

Select the next identical word in the editor

Why it works

VS Code uses ⌘D to add the next match. ⌘L takes the whole line and ⌘A takes everything. Excel uses ⌘D to fill down, so check which app you are in.

Tip

Keep pressing ⌘D to collect the matches, then rename every variable in one pass.

Train this shortcut

KeyFlow drills this card until your fingers know it. 10 valid cards a day keep the streak alive.

Coming to the App Store

Search 水果快捷键 in WeChat to start.