本文主要是介绍vscode 快捷键侧边栏,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
_____ 配置 vscode 快捷键
visual studio code - open explorer and close sidebar with the same key - Stack Overflow
{
"key": "ctrl+shift+e", // when Explorer not open
// "command": "workbench.view.explorer", // either of these commands works
"command": "workbench.files.action.focusFilesExplorer",
"when": "!explorerViewletVisible"
},
{
"key": "ctrl+shift+e", // when Explorer open
"command": "workbench.action.toggleSidebarVisibility",
"when": "explorerViewletVisible"
}
How did I find those context keys? See Inspect Context Keys Utility.
-
Open View/Help/Toggle Developer Tools
-
Go to and clear (right-click) the Console in the Developer Tools
-
Trigger the command: Developer: Inspect Context Keys from the Command Palette and click anywhere in the vscode window
-
In the Console, a large object will be created and output. Expand this object open so you can search in it.
-
With focus in the Console, Ctrl/Cmd+F to open a find input. For me, this appears at the very bottom and is tricky to see.
-
Type what you want to find, like "explorer"
-
I found 21 hits and looked at them all to see which were promising - you can Enter through them if focus is in the find input.
explorerViewletVisible looked most promising. Then I looked through the KeyBoard Shortcuts for "view explorer" and then "sidebar" to find commands I thought would work.
这篇关于vscode 快捷键侧边栏的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!