vscode 配置

2019-09-20 00:00:00 by 【6yang】, 97 visits, 收藏 | 返回
{
    "editor.tabSize"4,
    "editor.fontSize"18,
    "editor.wordWrap""on",
    "editor.formatOnPaste"true,
    "editor.tabCompletion""off",
    "editor.fontFamily""monaco, Consolas, 'Courier New', monospace",
    //"editor.renderWhitespace": "all",
    "editor.cursorBlinking""phase",
    "editor.cursorStyle""line-thin",
    "editor.snippetSuggestions""bottom",
    "editor.scrollBeyondLastLine"true,
    "editor.find.autoFindInSelection"true,
    "editor.multiCursorModifier""ctrlCmd",
    "editor.quickSuggestions": {
        "other"true,
        "comments"true,
        "strings"false
    },
    "breadcrumbs.enabled"true,
    "files.encoding""utf8",
    "files.insertFinalNewline"true,
    "files.autoSave""off",
    "files.eol""\n",
    "files.trimTrailingWhitespace"true,
    "window.title""${activeEditorFull}${separator}${rootName}",
    "scssFormatter.tabWidth"4,
    "scssFormatter.singleQuote"true,
    "liveServer.settings.donotShowInfoMsg"true,
    "powermode.enabled"true,
    "powermode.presets""flames",
    "powermode.comboTimeout"0,
    "fileheader.Author""jackyang",
    "fileheader.LastModifiedBy""jackyang",
    "files.exclude": {
        // 文件资源管理器将根据此设置决定要显示或隐藏的文件和文件夹
        "**/node_modules"false
    },
    "files.watcherExclude": {
        "**/.git/objects/**"true,
        "**/.git/subtree-cache/**"true,
        "**/node_modules/**"true
    },
    // 配置文件关联
    "files.associations": {
        "*.vue""vue",
        "*.tpl""html"
    },
    // 文件搜索排除
    "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
    },
    "emmet.showAbbreviationSuggestions"true,
    "emmet.showExpandedAbbreviation""always"// required to work with
    "emmet.includeLanguages": {
        "vue-html""html",
        "vue""html",
        "*.tpl""html",
        "*.phtml""html"
    },
    "emmet.triggerExpansionOnTab"true,
    "emmet.syntaxProfiles": {
        "vue-html""html",
        "vue""html"
    },
    "docthis.includeDateTag"true,
    "docthis.includeDescriptionTag"true,
    // vscode默认启用了根据文件类型自动设置tabsize的选项
    "editor.detectIndentation"false,
    // 每次保存的时候将代码按eslint格式进行修复
    "eslint.autoFixOnSave"true,
    // 添加 vue 支持
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
            "language""vue",
            "autoFix"true
        }
    ],
    // 自动修复格式,不支持vue文件
    "prettier.tabWidth"2,
    // 不加分号
    "prettier.semi"false,
    // 使用单引号
    "prettier.singleQuote"true,
    // Enable per-language
    "[javascript]": {
        "editor.defaultFormatter""esbenp.prettier-vscode",
        "editor.formatOnSave"true
    },
    "[scss]": {
        "editor.defaultFormatter""esbenp.prettier-vscode",
        "editor.formatOnSave"true
    },
    "[css]": {
        "editor.defaultFormatter""esbenp.prettier-vscode",
        "editor.formatOnSave"true
    },
    "[html]": {
        "editor.defaultFormatter""vscode.html-language-features",
        "editor.formatOnSave"true
    },
    // 设置自动格式化
    "editor.formatOnSave"true,
    // vertur:格式化vue专用
    "vetur.format.options.tabSize"2,
    "vetur.format.options.useTabs"false,
    // 让vue文件template格式化支持,并使用js-beautify-html插件
    "vetur.format.defaultFormatter.html""js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            //"wrap_attributes": "auto" 可以不换行
            //"wrap_attributes": "force-aligned"  //强制换行 会与"editor.formatOnSave": true冲突
        },
        "prettier": {
            "semi"false,
            "singleQuote"true
        }
    },
    // "workbench.colorTheme": "Monokai",
    "workbench.iconTheme""vscode-icons",
    "vsicons.dontShowNewVersionMessage"true,
    "terminal.integrated.shell.windows""C:\\Program Files\\Git\\bin\\bash.exe",
    "sync.forceUpload"true,
}
分享到:
share

    图片原图

    loading

    loading