VS code 保存格式化

140 阅读1分钟

记录下

{
    "workbench.colorTheme": "Monokai Dimmed",
    "git.autofetch": true,
    "editor.fontSize": 16,
    "editor.formatOnType": false,
    "editor.formatOnPaste": false,
    "security.workspace.trust.untrustedFiles": "open",
    "go.gotoSymbol.includeImports": true,
    "gopls": {
        "build.experimentalWorkspaceModule": true,
        "build.expandWorkspaceToModule": true
    },
    "files.associations": {
        "emmet.triggerExpansionOnTab": "true",
        "files.associations": "{\"*.js\": \"html\",\"*.tpl\": \"html\"}"
    },
    "workbench.startupEditor": "none",
    "cmake.configureOnOpen": true,
    "bracket-pair-colorizer-2.depreciation-notice": false,
    "git.confirmSync": false,
    "git.enableSmartCommit": true,
    // dart 语言设置
    "[dart]": {
        "editor.formatOnSave": false,
        "editor.formatOnType": false,
        "editor.rulers": [
            80
        ],
        "editor.selectionHighlight": false,
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": false
    },
    // 保存格式化设置
    "editor.formatOnSave": false, //false即关闭,反之开启
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": false
    },
    "editor.guides.bracketPairs": true,
}