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.

  1. Open View/Help/Toggle Developer Tools

  2. Go to and clear (right-click) the Console in the Developer Tools

  3. Trigger the command: Developer: Inspect Context Keys from the Command Palette and click anywhere in the vscode window

  4. In the Console, a large object will be created and output. Expand this object open so you can search in it.

  5. 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.

  6. Type what you want to find, like "explorer"

  7. 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.

相关推荐
Eiceblue39 分钟前
Python 插入、替换、提取、或删除Excel中的图片
开发语言·vscode·python·pycharm·excel
changuncle5 小时前
VSCode使用ipynb文件高效地进行功能测试
vscode·功能测试·jupyter·ipynb·方便
EEer!7 小时前
vscode(七):设置不同括号有不同颜色
ide·vscode·编辑器
GeniusAng丶1 天前
vscode刷LeetCode算法题环境配置
vscode·算法·leetcode
couldn1 天前
yaklang window安装 vscode运行得到“hello world”
ide·vscode·网络安全·编辑器·密码学·密钥·yaklang
cv操作贼61 天前
vscode 快捷键
ide·vscode·编辑器
东皇太一在此1 天前
VScode使用ssh连接服务器
服务器·vscode·ssh
hzxOnlineOk1 天前
【vsCode】如何开发一个vscode插件
ide·vscode·编辑器
weixin456227191 天前
Vscode代码片段配置
ide·vscode·编辑器
Eiceblue1 天前
用Python轻松转换Markdown文件为PDF文档
开发语言·vscode·python·pdf·word