vscode的 settings.json 文件配置

// {
// "workbench.colorTheme": "Quiet Light",
// "vetur.format.options.tabSize": 4,
// // 100 列后换行
// "editor.wordWrapColumn": 100,
// // 保存时格式化
// "editor.formatOnSave": false,
// // 开启 vscode 文件路径导航
// "breadcrumbs.enabled": true,
// // prettier 设置语句末尾不加分号
// "prettier.semi": false,
// // prettier 设置强制单引号
// "prettier.singleQuote": true,
// // 显示 markdown 中英文切换时产生的特殊字符
// "editor.renderControlCharacters": true,
// // eslint 检测文件类型
// "eslint.validate": [
// "javascript",
// {
// "language": "vue",
// "autoFix": true
// },
// "html",
// "vue",
// "javascriptreact",
// {
// "language": "html",
// "autoFix": true
// },
// {
// "language": "vue",
// "autoFix": true
// }
// ],
// // vetur 的自定义设置
// "window.zoomLevel": 0,
// "terminal.integrated.rendererType": "dom",
// "editor.suggest.snippetsPreventQuickSuggestions": false,
// "emmet.triggerExpansionOnTab": true,
// "files.associations": {
// ".cjson": "jsonc",
// ".wxss": "css",
// ".wxs": "javascript",
// ".html": "html",
// ".vue": "html",
// // ".vue": "vue", //解决使用sacc的代码问题
// },
// "git.autofetch": true,
// "files.eol": "\r\n",
// "vetur.validation.template": false,
// "vetur.format.defaultFormatter.js": "vscode-typescript",
// "vetur.format.defaultFormatter.html": "js-beautify-html", // 选择 vue 文件中 template 的格式化工具
// "vetur.format.defaultFormatterOptions": {
// "js-beautify-html": {
// "wrap_attributes": "auto"
// },
// "prettyhtml": {
// "printWidth": 100,
// "singleQuote": false,
// "wrapAttributes": false,
// "sortAttributes": false
// }
// },
// "eslint.autoFixOnSave": true, // 设置 eslint 保存时自动修复
// "eslint.options": {
// "extensions": [
// ".js",
// ".vue"
// ]
// },
// "easysass.compileAfterSave": true,
// "easysass.formats": [ //nested:嵌套缩进的 css 代码。
// //expanded:没有缩进的、扩展的css代码。
// //compact:简洁格式的 css 代码。
// //compressed:压缩后的 css 代码
// {
// "format": "expanded",
// "extension": ".css"
// },
// {
// "format": "compressed",
// "extension": ".min.css"
// }
// ],
// "easysass.targetDir": "css/", //路径
// // 修改500ms后自动保存
// "editor.formatOnSaveTimeout": 500,
// "files.autoSave": "afterDelay",
// "files.autoSaveDelay": 500,
// "editor.codeActionsOnSaveTimeout": 500,
// "[javascript]": {
// "editor.defaultFormatter": "vscode.typescript-language-features"
// },
// "workbench.tree.indent": 20,
// "editor.tabCompletion": "on",
// "editor.useTabStops": false,
// "editor.detectIndentation": false,
// "cssrem.rootFontSize": 75,
// "cssrem.fixedDigits": 4,
// }
{
    "files.autoSave": "afterDelay",
    "go.buildOnSave": true,
    "go.lintOnSave": true,
    "go.vetOnSave": true,
    "go.buildFlags": [],
    "go.lintFlags": [],
    "go.vetFlags": [],
    "go.useCodeSnippetsOnFunctionSuggest": false,
    "go.formatOnSave": false,
    "go.formatTool": "goreturns",
    "window.zoomLevel": 0,
    "files.autoGuessEncoding": true,
    "emmet.triggerExpansionOnTab": true,
    "files.associations": {
        ".cjson": "jsonc",
        ".wxss": "css",
        ".wxs": "javascript",
        ".html": "html",
        ".vue": "vue"
    },
    "git.autofetch": true,
    "files.eol": "\r\n",
    "vetur.validation.template": false,
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "auto"
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    },
    "eslint.options": {
        "extensions": [
            ".js",
            ".vue"
        ]
    },
    "eslint.validate": [
        "javascript",
        {
            "language": "vue",
            "autoFix": true
        },
        "html",
        "vue"
    ],
    "eslint.autoFixOnSave": true,
    "workbench.startupEditor": "welcomePage",
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "minapp-vscode.disableAutoConfig": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "python.jediEnabled": false,
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "git.enableSmartCommit": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "diffEditor.ignoreTrimWhitespace": false,
    "[css]": {
        "editor.defaultFormatter": "aeschli.vscode-css-formatter"
    },
    "cssrem.rootFontSize": 75,
    "px-2rem.px-per-rem": null,
    "cssrem.fixedDigits": 4,
    "px-to-rem.px-per-rem": 75,
    "px-to-rem.only-change-first-ocurrence": true,
    "git.ignoreMissingGitWarning": true,
    "cssrem.ingoresViaCommand": [
        "/* px / rem */"
    ],
    "editor.wordWrap": "on",
    "terminal.integrated.shell.windows": "C:\Windows\Sysnative\cmd.exe",
    "merge-conflict.autoNavigateNextConflict.enabled": true,
    "git.confirmSync": false,
    "[vue]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "workbench.colorCustomizations": {},
}

 

你可能感兴趣的:(vue,配置,visual,studio,code,vue)