选择主题

选择导航背景

vscode编辑器设置,禁止prettier自动格式化代码

{

  "gitlens.advanced.messages": {

    "suppressCommitHasNoPreviousCommitWarning": false,

    "suppressCommitNotFoundWarning": false,

    "suppressFileNotUnderSourceControlWarning": false,

    "suppressGitVersionWarning": false,

    "suppressLineUncommittedWarning": false,

    "suppressNoRepositoryWarning": false,

    "suppressResultsExplorerNotice": false,

    "suppressShowKeyBindingsNotice": true,

    "suppressUpdateNotice": false,

    "suppressWelcomeNotice": true

  },

  "editor.tabSize": 2,

  "terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe",

  "vetur.format.defaultFormatter.js": "vscode-typescript",

  "vetur.format.defaultFormatter.html": "js-beautify-html",

  "vetur.format.defaultFormatterOptions": {

    "js-beautify-html": {

      "wrap_attributes": "auto"

    },

    "prettyhtml": {

      "printWidth": 300,

      "singleQuote": false,

      "wrapAttributes": false,

      "sortAttributes": false

    }

  },

  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,

  "editor.formatOnSave": true,

  "gitlens.keymap": "alternate",

  "explorer.confirmDelete": false,

  "workbench.startupEditor": "newUntitledFile",

  "editor.minimap.enabled": false,

  "editor.fontSize": 22,

  "files.autoSave": "afterDelay",

  "explorer.confirmDragAndDrop": false,

  "workbench.colorTheme": "Quiet Light",

  "eslint.validate": [

    "javascript",

    "javascriptreact",

    "html",

    {

      "language": "vue",

      "autoFix": true

    }

  ],

  "eslint.options": {

    "plugins": [

      "html"

    ]

  },

  "workbench.iconTheme": "vscode-icons",

  "files.associations": {

    "*.cjson": "jsonc",

    "*.wxss": "css",

    "*.wxs": "javascript"

  },

  "emmet.includeLanguages": {

    "wxml": "html"

  },

  "minapp-vscode.disableAutoConfig": true,

  "git.confirmSync": false,

  "breadcrumbs.enabled": true,

  "editor.wordWrap": "on",

  "easysass.formats": [

    {

      "format": "expanded",

      "extension": ".css"

    },

    {

      "format": "compressed",

      "extension": ".min.css"

    }

  ],

  "easysass.targetDir": "./style/",

  "gitlens.views.fileHistory.enabled": true,

  "gitlens.views.lineHistory.enabled": true,

  "less.compile": {

    "compress": true, // true => remove surplus whitespace

    "sourceMap": true, // true => generate source maps (.css.map files)

    "out": "${workspaceRoot}\\style\\", // false => DON'T output .css files (overridable per-file, see below)

  },

  "editor.detectIndentation": false,

  "html.format.wrapAttributes": "auto",

  "eslint.autoFixOnSave": true,

  "terminal.integrated.rendererType": "dom",

  "search.followSymlinks": false,

}

======================

上面是我的配置,因为常写vue,最近更新的vscode编辑器总是自动给我格式化成pretty风格的代码,看着我挺尴尬,百度了半天,结合别人的配置,综合我已有的配置,分享出来vscode的代码配置,不喜勿喷,

另外加点我装的插件截图,本地不想保存图片了,放网上省点空间

=====================

1.png

2.png

3.png

4.png