Skip to content

Instantly share code, notes, and snippets.

@negativems
Last active April 18, 2023 09:49
Show Gist options
  • Save negativems/87c4a435df303b8c3f3ba6a4d8809770 to your computer and use it in GitHub Desktop.
Save negativems/87c4a435df303b8c3f3ba6a4d8809770 to your computer and use it in GitHub Desktop.
VSCode toggle find in file (search view)
[
{ // You need only this shortcut
"key": "ctrl+shift+f",
"command": "workbench.files.action.focusFilesExplorer",
"when": "searchViewletVisible"
},
// COPY THIS ONLY:
// If you have the find view in the secondary side bar (the right)
{ // this open the find view
"command": "runCommands",
"key": "ctrl+shift+f",
"args": {
"commands": [
"workbench.action.findInFiles",
]
},
"when": "editorFocus"
},
{ // This untoggle the secondary bar only if you are on the editor and with the same key
"key": "ctrl+shift+f",
"command": "workbench.action.toggleAuxiliaryBar",
"when": "!editorFocus"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment