美文网首页
最常用的vs配置

最常用的vs配置

作者: _theFeng | 来源:发表于2019-03-22 15:26 被阅读0次
{ // VScode主题配置
    "eslint.autoFixOnSave": true,
    "editor.tabSize": 2,
    "editor.lineHeight": 28,
    "editor.renderLineHighlight": "all",
    "editor.renderWhitespace": "none",
    "editor.fontFamily": "Consolas",
    "editor.fontSize": 23,
    "editor.cursorBlinking": "smooth",
    "editor.multiCursorModifier": "ctrlCmd",
    "editor.formatOnPaste": true,
    // 是否允许自定义的snippet片段提示,比如自定义的vue片段开启后就可以智能提示
    "editor.snippetSuggestions": "top",
    "workbench.iconTheme": null,
    "workbench.colorTheme": "Solarized Light",
    "workbench.startupEditor": "welcomePageInEmptyWorkbench",
    "html.suggest.angular1": false,
    "html.suggest.ionic": false,
    "files.trimTrailingWhitespace": true,
    // vetur插件格式化使用beautify内置规则
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    // VScode 文件搜索区域配置
    "search.exclude": {
        "**/dist": true,
        "**/build": true,
        "**/elehukouben": true,
        "**/.git": true,
        "**/.gitignore": true,
        "**/.svn": true,
        "**/.DS_Store": true,
        "**/.idea": true,
        "**/.vscode": false,
        "**/yarn.lock": true,
        "**/tmp": true
    },
    // 排除文件搜索区域,比如node_modules(贴心的默认设置已经屏蔽了)
    "files.exclude": {
        "**/.idea": true,
        "**/yarn.lock": true,
        "**/tmp": true
    },
    // 配置文件关联,以便启用对应的智能提示,比如wxss使用css
    "files.associations": {
        "*.vue": "vue",
        "*.wxss": "css",
        "*.wxml": "html",
        "*.cjson": "jsonc",
        "*.wxs": "javascript"
    },
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        "jsx",
        "vue",
        {
            "language": "javascript",
            "autoFix": true
        }
    ],
    "files.autoSave": "onFocusChange",
    "minapp-vscode.disableAutoConfig": true,
    "javascript.implicitProjectConfig.experimentalDecorators": true,
    "git.enableSmartCommit": true,
    "window.zoomLevel": -1
}

相关文章

网友评论

      本文标题:最常用的vs配置

      本文链接:https://www.haomeiwen.com/subject/cgmplftx.html