Last active
April 18, 2023 09:49
-
-
Save negativems/87c4a435df303b8c3f3ba6a4d8809770 to your computer and use it in GitHub Desktop.
VSCode toggle find in file (search view)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ // 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