1.點擊設置,找到beautify.language並在html一欄里加上vue
"beautify.language": { "js": { "type": [ "javascript", "json" ], "filename": [ ".jshintrc", ".jsbeautify" ] }, "css": [ "css", "scss" ], "html": [ "htm", "html", "vue"//在這里加上vue ] }
2.在VSCode的鍵盤快捷方式文件里添加
{
"key": "ctrl+f",//自己定鍵位
"command": "HookyQR.beautify",
"when": "editorFocus"
}
"key": "ctrl+f",//自己定鍵位
"command": "HookyQR.beautify",
"when": "editorFocus"
}
