新老vsCode的配置

311 阅读1分钟

1、老的VS

{
    "workbench.iconTheme": "vscode-icons",
    "git.enableSmartCommit": true,
    "git.confirmSync": false,
    "gitlens.views.remotes.files.layout": "list",
    "gitlens.views.branches.files.layout": "list",
    "redhat.telemetry.enabled": true,
    "eslint.alwaysShowStatus": true,
    "explorer.confirmDelete": false,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "security.workspace.trust.untrustedFiles": "open",
    "go.toolsManagement.autoUpdate": true,
    "diffEditor.ignoreTrimWhitespace": false,
    "[vue]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[dart]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.rulers": [
            80
        ],
        "editor.selectionHighlight": false,
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": false
    },
    "workbench.editorAssociations": {
        "*.html": "default"
    },
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "js/ts.implicitProjectConfig.experimentalDecorators": true,
    "bracketPairColorizer.depreciation-notice": false,
    "vetur.validation.script": false,
    "vetur.format.defaultFormatterOptions": {
    
        "js-beautify-html": {
            "wrap_attributes": "force-expand-multiline"
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    }
}

1、新的VS

{
  "bracketPairColorizer.depreciation-notice": false,
  "explorer.confirmDelete": false,
  "git.autofetch": true,
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "vue-html",
    "vue",
    "typescript",
    "html"
  ],
  "eslint.format.enable": true,
  "eslint.alwaysShowStatus": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
    "eslint.autoFixOnSave": true
  },

  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "eslint.run": "onSave",
  "editor.formatOnSave": true,
  "eslint.codeAction.showDocumentation": {},
  "workbench.editor.splitInGroupLayout": "vertical",

  "editor.formatOnType": true,
  "editor.tabSize": 2,
  "editor.formatOnPaste": true,
  "files.autoSave": "afterDelay",
  "git.confirmSync": false,
  "workbench.startupEditor": "newUntitledFile",
  "editor.suggestSelection": "first",
  "editor.acceptSuggestionOnCommitCharacter": false,
  "css.lint.propertyIgnoredDueToDisplay": "ignore",
  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  },
  "files.associations": {
    "editor.snippetSuggestions": "top"
  },
  "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },

  //  #去掉代码结尾的分号
  "prettier.semi": false,
  //  #使用带引号替代双引号
  "prettier.singleQuote": true,
  "vetur.validation.script": false,
  "eslint.nodePath": ""
}