vscode setting.json

该配置文件详细定义了VSCode的设置,主要用于优化Vue.js和HTML的开发体验。它包括代码格式化规则,如使用vetur和js-beautify,调整tab大小,控制缩进和空白符,以及设置ESLint和Prettier的行为。此外,还涉及到Emmet的设置,提高代码补全和提示的效率。
摘要由CSDN通过智能技术生成

{

  "[vue]": {

    "editor.defaultFormatter": "octref.vetur"

  },

  "editor.tabSize": 2,

  "diffEditor.ignoreTrimWhitespace": false,

  "git.ignoreWindowsGit27Warning": true,

  "[json]": {

    "editor.quickSuggestions": {

      "strings": true

    },

    "editor.suggest.insertMode": "replace"

  },

  "javascript.format.insertSpaceBeforeFunctionParenthesis": true, //让函数(名)和后面的括号之间加个空格

  "vetur.format.defaultFormatter.html": "js-beautify-html", //格式化.vue中html

  "vetur.format.defaultFormatter.js": "vscode-typescript", //让vue中的js按编辑器自带的ts格式进行格式化

  "vetur.format.defaultFormatterOptions": {

    "js-beautify-html": {

      "wrap_attributes": "auto",

    },

    "prettyhtml": {

      "printWidth": 520,

      "singleQuote": false,

      "wrapAttributes": false,

      "sortAttributes": false

    }

  },

  "editor.codeActionsOnSave": {

    "source.fixAll.eslint": false

  },

  //显式弹出语法展开提示

  "emmet.showSuggestionsAsSnippets": true,

  //将语法展开提示在提示列表中置顶

  "editor.snippetSuggestions": "top",

  //emmet只显示标记语言和样式表的展开提示

  "emmet.showExpandedAbbreviation": "inMarkupAndStylesheetFilesOnly",

  //emmet能识别缩写语法的场景

  "emmet.includeLanguages": {

    "javascript": "javascriptvue",

    "vue-html": "html",

    "plaintext": "jade"

  },

  "launch": {},

  "editor.largeFileOptimizations": false,

  "editor.fontSize": 15,

  "workbench.editor.decorations.colors": false,

  "liveServer.settings.port": 0,

  "[jsonc]": {

    "editor.defaultFormatter": "svipas.prettier-plus"

  },

  "window.zoomLevel": -1,

  "search.exclude": {

    "**/node_modules": true,

    "**/bower_components": true,

    "**/*.code-search": true,

    "**/.nuxt": true,

  },

  "editor.renderWhitespace": "none",

  "editor.minimap.enabled": false,

  "breadcrumbs.enabled": false,

  "editor.renderControlCharacters": false,

  "vetur.validation.template": false,

  "files.refactoring.autoSave": false,

  "testing.saveBeforeTest": false,

  "editor.suggest.snippetsPreventQuickSuggestions": false,

  "[html]": {

    "editor.defaultFormatter": "vscode.html-language-features"

  },

  "json.validate.enable": false,

  "html.validate.scripts": false,

  "html.validate.styles": false

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值