1

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)

Alex
  • 21
  • 6

1 Answers1

0

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"

Alex
  • 21
  • 6
  • 1
    This comment makes it sound like workbench.action.findInFilesWithSelectedText was removed in 2018: https://github.com/microsoft/vscode/issues/44609 – bronson Jan 23 '20 at 23:30