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.

相关推荐
韭菜钟41 分钟前
在Linux下使用vscode使用交叉编译工具链的gdb对core文件进行堆栈、变量查看
linux·运维·vscode
flushddd18 小时前
GOOUUU ESP32-S3-CAM 果云科技开发板开发指南(一)(超详细!)Vscode+espidf 通过摄像头拍摄照片并存取到SD卡中,文末附源码
ide·vscode·编辑器·esp32
卖猪肉的痴汉21 小时前
4.2 C/C++开发环境:VSCode+CMake+MSYS2
c语言·c++·vscode
loriloy1 天前
VsCode 离线插件下载
ide·vscode·编辑器
hbh112233abc1 天前
VSCode中PHP使用Xdebug
ide·vscode·php
alpszero1 天前
使用VSCode开发Django指南
vscode·python·django·sqlite
Wallace Zhang1 天前
VScode - 我的常用插件01 - 主题插件Noctis
ide·vscode·编辑器
程序猿小D2 天前
第22节 Node.js JXcore 打包
开发语言·人工智能·vscode·node.js·c#
至善迎风2 天前
Windows系统中如何使用符号链接将.vscode等配置文件夹迁移到D盘(附 CMD & PowerShell 双版本命令)
ide·windows·vscode
old_power2 天前
在 Windows 系统下配置 VSCode + CMake + Ninja 进行 C++ 或 Qt 开发
c++·windows·vscode·cmake·ninja