And setting code formatting shortcuts

C:\Users\qinmt\AppData\Roaming\Code\User\settings.json

{
    "files.autoSave": "afterDelay",             
    "editor.fontSize": 15,               
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "files.associations": {
        "*.wxml": "wxml",
        "*.vue": "vue-html"
    },
    "explorer.confirmDelete": false,
    "workbench.colorTheme": "Visual Studio Dark",
    "svn.enableProposedApi": "product",
    "editor.quickSuggestions": {
        "strings": true
    },
    "git.autofetch": true,
    "[vue-html]": {
        
    },
    "beautify.language": {
        "js": {
        "type": [
            "javascript",
            "json"
        ],
        "filename": [
            ".jshintrc",
            ".jsbeautify"
            ]
        },
        "css": [
            "css",
            "scss"
        ],
        "html": [
            "htm",
             " HTML " ,
             " VUE " // add here VUE 
        ] 
    } 
}

The key bindings in this file to override the default values

[
{
"key": "ctrl+alt+l", // 自己定键位
"command": "HookyQR.beautify",
"when": "editorFocus"
}
]

  

 

Guess you like

Origin www.cnblogs.com/choucat/p/11104155.html