keybindings.json配置文件
// 将键绑定放在此文件中以覆盖默认值auto[]
[
{
"key": "f3",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+left",
"command": "-workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "f4",
"command": "extension.switcher.doSwitch"
},
{
"key": "alt+o",
"command": "-extension.switcher.doSwitch"
},
{
"key": "f2",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
} {
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
}
]
1、F4配置.h/.cpp跳转;(下载插件switcher,将ALT+O配置为F4)
2、F2配置索引到定义(在快捷键配置文件里配置,不起效果就重新下载c/c++ extension pack);
3、F3配置回退到上一级文件;