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.

相关推荐
狠活科技4 小时前
免登录!免安装ClI,Claude Code官方插件接入API使用教程
人工智能·vscode·ai编程
诗意地回家6 小时前
工具: 下载vscode .vsix扩展文件方法
ide·vscode·编辑器
scorpion_V11 小时前
VScode 中执行 npm 报错的问题
ide·vscode·npm
曹申阳1 天前
1. 使用VSCode开发uni-app环境搭建
ide·vscode·uni-app
每天更新1 天前
VSCODE 使用GDB
ide·vscode·编辑器
傅科摆 _ py1 天前
解决 Vscode 中运行键突然消失的问题
ide·vscode·编辑器
丨Sky丨夜吻1 天前
vscode扩展
ide·vue.js·vscode
阑梦清川1 天前
vscode远程连接云服务器的初次尝试
vscode
九河_2 天前
服务器在线安装插件失败/离线安装VSIX
vscode·extension·pylance
小池先生2 天前
用vscode查日志方便的搜索-复制所有匹配行功能
ide·vscode·编辑器