vscode插件配置

{

// 行高
"editor.lineHeight": 17,
// 通过使用鼠标滚轮同时按住 Ctrl 可缩放编辑器的字体
"editor.mouseWheelZoom": false,
// 行太长自动换行
"editor.wordWrap": "off",
"window.zoomLevel": 0,

// eslint 设置(vetur 配置 eslint)
"eslint.autoFixOnSave": true,
"eslint.validate": [
    {
        "language": "html",
        "autoFix": true
    },
    {
        "language": "javascript",
        "autoFix": true
    },
    {
        "language": "vue",
        "autoFix": true
    }
],
"eslint.options": {
    "extensions": [
        ".js",
        ".vue"
    ]
},

// vetur设置
"vetur.validation.template": false,
"vetur.format.defaultFormatter.js": "prettier",  
"vetur.format.defaultFormatter.ts": "vscode-typescript",  
// "vetur.format.defaultFormatterOptions": {
//     "js-beautify-html": {
//         "html": {
//             "wrap_attributes": "force-aligned"
//         }
//     }
// },

// csscomb 设置
"csscomb.formatOnSave": true,
// "csscomb.preset": ".csscomb.json",
"csscomb.preset": {},
"emmet.includeLanguages": {
    "vue-html": "html",
    "vue": "html",
    "wxml": "html"
},
"files.associations": {
    "*.cjson": "jsonc",
    "*.wxss": "css",
    "*.wxs": "javascript"
},
"minapp-vscode.disableAutoConfig": true,
"workbench.iconTheme": "vscode-icons",
"explorer.confirmDragAndDrop": false,
"git.allowForcePush": true,
"terminal.integrated.rendererType": "dom",
"explorer.confirmDelete": false,
"editor.codeActionsOnSave": {
    "source.fixAll.eslint": false
},
"emmet.excludeLanguages": [

    "markdown"
],
// "[vue]": {
//     "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
"git.confirmSync": false,
"editor.tabSize": 2,
"[yaml]": {

},
"files.autoSave": "off",
"workbench.editor.revealIfOpen": true,
"zenMode.restore": true,
"workbench.startupEditor": "newUntitledFile",
"window.restoreWindows": "all",
"prettier.semi": false,
"prettier.singleQuote": true,
"prettier.requireConfig": true,
"[vue]": {
    "editor.defaultFormatter": "octref.vetur"
},
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
    "prettier": {
        "semi": false,
        "singleQuote": true
      },
    "prettyhtml": {
        // 单行超过100个长度的时候开始换行
        "printWidth": 100,
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "wrapAttributes": true,
        "sortAttributes": true,
      },
    "js-beautify-html": {
        // "wrap_attributes": "force-expand-multiline"
        "wrap_attributes": "auto"
    }
},
"html.format.contentUnformatted": "",
"editor.fontLigatures": null

}

猜你喜欢

转载自blog.csdn.net/jo_an_na/article/details/108001723