vscode settings.json文件

Posted Frank-Link

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vscode settings.json文件相关的知识,希望对你有一定的参考价值。

{
    "editor.tabSize": 2,
    "workbench.iconTheme": "vscode-icons",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "search.followSymlinks": false,
    "files.autoSave": "onFocusChange",
    "eslint.autoFixOnSave": true,
    "gitlens.advanced.messages": {
        "suppressCommitHasNoPreviousCommitWarning": false,
        "suppressCommitNotFoundWarning": false,
        "suppressFileNotUnderSourceControlWarning": false,
        "suppressGitDisabledWarning": false,
        "suppressGitVersionWarning": false,
        "suppressLineUncommittedWarning": false,
        "suppressNoRepositoryWarning": false,
        "suppressSupportGitLensNotification": false,
        "suppressShowKeyBindingsNotice": true
    },
    "git.ignoreMissingGitWarning": true,
    "git.enableSmartCommit": true,
    "git.confirmSync": false,
    "git.autofetch": true,
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,
    "search.exclude": {
        "**/node_modules": true,
        "**/bower_components": true,
        "**/dist": true
    },
    "emmet.syntaxProfiles": {
        "javascript": "jsx",
        "vue": "html",
        "vue-html": "html"
    },
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[css]": {
        "editor.defaultFormatter": "michelemelluso.code-beautifier"
    },
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "force-aligned"
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": true
        },
        "prettier": {
            "semi": false,
            "singleQuote": true
        }
    },
}

 

以上是关于vscode settings.json文件的主要内容,如果未能解决你的问题,请参考以下文章

vscode中我的settings.json文件

vscode中我的settings.json文件

vscode settings.json

VSCode无法在Mac上找到settings.json

vsCode中配置保存格式化代码

vscode html实现代码补全