vscode setting.json (@vue/eslint-config-prettier)

{
    "workbench.colorTheme": "Default Light+", // 主题
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe", // trrminal
    "git.path": "D:\\Git\\bin\\git.exe", // git
    "files.autoSave": "onFocusChange", // 自动保存
    "files.associations": {
        "*.vue": "vue"
    },
    "emmet.triggerExpansionOnTab": true, // tab补全
    "emmet.includeLanguages": {
        "vue-html": "html",
        "vue": "html"
    },
    "editor.tabSize": 2,
    "editor.minimap.enabled": false,
    "editor.foldingStrategy": "indentation",
    "editor.formatOnSave": true, // 保存时自动匹配
    "[javascript]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "esbenp.prettier-vscode" //保存时自动规范代码
    },
    "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[css]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[less]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[vue]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    }
}

 

posted @ 2019-11-26 10:10  _Iniesta  阅读(766)  评论(0编辑  收藏  举报