<<前端团队规范>>vscode统一配置

统一VS Code工作区配置

{
    "folders": [
        {
            "path": "/Users/insentek/WorkSpace/2020/library-webapp"
        },
        {
            "path": "/Users/insentek/WorkSpace/2020/yike-server"
        },
        {
            "path": "/Users/insentek/WorkSpace/2020/yike-miniprogram"
        },
        {
            "path": "/Users/insentek/WorkSpace/2020/prdops"
        },
        {
            "path": "/Users/insentek/WorkSpace/2020/integrated"
        }
    ],
    "extensions": {
        "recommendations": [
            "formulahendry.auto-close-tag",
            "formulahendry.auto-rename-tag",
            "stevencl.adddoccomments",
            "ms-ceintl.vscode-language-pack-zh-hans",
            "dbaeumer.vscode-eslint",
            "mrcrowl.easy-less",
            "eg2.vscode-npm-script",
            "christian-kohler.npm-intellisense",
            "ronnidc.nunjucks",
            "johnstoncode.svn-scm",
            "eliean.vscode-svn",
            "octref.vetur"
        ]
    },
    "settings": {
        "files.autoSave": "afterDelay",
        "editor.fontSize": 15,
        "editor.lineHeight": 26,
        "explorer.autoReveal": false,
        "editor.fontWeight": "300",
        "editor.formatOnSave": true,
        "editor.fontFamily": "Source Code Pro",
        "workbench.iconTheme": "webstorm-icons",
        "svn.enableProposedApi": "product",
        "files.exclude": {
            "**/.git": true,
            "**/.DS_Store": true,
            "**/*.meta": true,
            ".idea/": true,
            "node_modules/": true,
            "logs/": true,
            "run/": true,
            "**/.classpath": true,
            "**/.project": true,
            "**/.settings": true,
            "**/.factorypath": true
        },
        "workbench.sideBar.location": "left",
        "editor.minimap.enabled": true,
        "svn.showOutput": true,
        "npm.autoDetect": "off",
        "workbench.tree.indent": 20,
        "workbench.tree.renderIndentGuides": "always",
        "workbench.view.alwaysShowHeaderActions": true,
        "emmet.triggerExpansionOnTab": true,
        "editor.quickSuggestionsDelay": 0,
        "editor.detectIndentation": false,
        "workbench.list.openMode": "doubleClick",
        "markdown.preview.doubleClickToSwitchToEditor": true,
        "eslint.validate": [
            "javascript",
            "javascriptreact",
            "html",
            "vue"
        ],
        "eslint.run": "onSave",
        "eslint.format.enable": true,
        "svn.delete.actionForDeletedFiles": "remove",
        "editor.suggestSelection": "first",
        "files.associations": {
            "*.html": "html"
        },
        "[html]": {
            "editor.defaultFormatter": "vscode.html-language-features"
        },
        "editor.codeActionsOnSave": {
            "source.fixAll.eslint": true
        },
        "window.zoomLevel": 0,
        "vetur.format.options.tabSize": 4,
        "[vue]": {
            "editor.defaultFormatter": "octref.vetur"
        },
        "vetur.format.defaultFormatter.html": "js-beautify-html",
        "vetur.format.defaultFormatter.css": "prettier",
        "vetur.format.defaultFormatter.postcss": "prettier",
        "vetur.format.defaultFormatter.scss": "prettier",
        "vetur.format.defaultFormatter.less": "prettier",
        "vetur.format.defaultFormatter.stylus": "stylus-supremacy",
        "vetur.format.defaultFormatter.js": "none",
        "vetur.format.defaultFormatter.ts": "none",
        "vetur.validation.template": false,
        "vetur.format.defaultFormatterOptions": {
            "js-beautify-html": {
                "wrap_attributes": 0,
                "max_preserve_newlines": 1
            }
        }
    }
}

猜你喜欢

转载自www.cnblogs.com/Lewiskycc/p/12118596.html