在VS代码的资源管理器侧栏中,如何使用ctrl+p
和ctrl+n
而不是上/下箭头键在文件之间导航?
将以下代码段添加到keybindings.json
(您可以通过Open Keyboard Shortcuts (JSON)
命令找到它)。
{
"key": "ctrl+n",
"command": "list.focusDown",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
{
"key": "ctrl+p",
"command": "list.focusUp",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},