Visual Studio Code find selected text in files

1.3k views Asked by At

In Visual Studio Code:

I would like to: select text in editor, press hotkey "for find in files", press return:

result: find all instances of selected text in files

(So I would need the currently selected text copy pasted into the search input field)

1

There are 1 answers

1
Alex On

The default keybinding for search ctrl+shift+f works - it uses the command: "-workbench.action.findInFilesWithSelectedText"

I had a custom key binding and mapped to "command": "-workbench.action.findInFiles"