vcode格式化代码快捷键

默认快捷键是

shift+alt+f

我改成了别的快捷键,如何改呢?

打开键位设置文件,在前面位置添加

{
"key": "ctrl+你喜欢的键位",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
即可

你可能感兴趣的:(vcode格式化代码快捷键)