hans_meine
hans_meine

Reputation: 1921

Shortcuts to quickly accept or decline replacements in Visual Studio Code?

I am struggling with something that feels very basic (at least as a long-term Emacs user): When using the search & replace functionality in Visual Studio Code, I can accept/perform replacements one-by-one by pressing Enter while the replacement is focused.

In order to skip one occurrence of the search string, I press Shift + Tab to move the focus back into the search field, then press Enter to go to the next occurrence, then (likely) press Tab again to focus the replacement. There must be an easier way to do so, right?

Things I tried:

Upvotes: 1

Views: 301

Answers (1)

Mark
Mark

Reputation: 180631

Try this workflow. Focus must start in the Find input (not the replace input box - if you enter the replace term second just Shift+Tab to focus the replace field).

Ctrl+Shift+1 replaces an item

Enter skips to the next

find skip replace demo

Upvotes: 3

Related Questions