vscode 配置

{

"workbench.settings.editor": "ui",

// 文本编辑器

"editor.suggestSelection": "first",

"editor.renderControlCharacters": true,

"editor.multiCursorModifier": "ctrlCmd",

"editor.snippetSuggestions": "top",

"editor.renderWhitespace": "all",

"editor.formatOnPaste": true,

"editor.wordWrap": "on",

"editor.fontSize": 12,

"editor.tabSize": 2,

"editor.codeActionsOnSave": {

// For ESLint

//"source.fixAll.eslint": true,

// For TSLint

"source.fixAll.tslint": true,

// For Stylelint

"source.fixAll.stylelint": true

},

"eslint.validate": [

"javascript",

"javascriptreact",

"html",

"vue"

],

"vetur.format.defaultFormatter.js": "prettier",

"diffEditor.ignoreTrimWhitespace": true,

// 窗口

"window.zoomLevel": 0,

// 文件资源管理

"explorer.confirmDragAndDrop": false,

"explorer.confirmDelete": false,

// 终端

"terminal.integrated.cursorBlinking": true,

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

"terminal.integrated.cursorStyle": "line",

// 文件

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

"files.insertFinalNewline": true,

"files.eol": "\n",

"files.associations": {

"*.vue": "vue",

"*.wxss": "css",

"*.cjson": "jsonc",

"*.wxs": "javascript",

"*.js": "javascript",

"*.wxml": "html"

},

"vetur.format.defaultFormatterOptions": {

"js-beautify-html": {

"wrap_attributes": "aligned-multiple"

},

"prettier": {

"singleQuote": true,

"semi": false,

"printWidth": 100,

"wrapAttributes": false,

"sortAttributes": false

}

},

// 语言相关配置

"html.format.extraLiners": "",

"javascript.referencesCodeLens.enabled": true,

// 针对某种语言,配置替代编辑器设置。

// 以下配置大多是设置默认格式化程序

"[html]": {

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

},

"[vue]": {

"editor.defaultFormatter": "octref.vetur"

},

"[css]": {

"editor.defaultFormatter": "esbenp.prettier-vscode"

},

"[less]": {

"editor.defaultFormatter": "esbenp.prettier-vscode"

},

"[scss]": {

"editor.defaultFormatter": "esbenp.prettier-vscode"

},

"[javascript]": {

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

},

"[javascriptreact]": {

"editor.defaultFormatter": "esbenp.prettier-vscode"

},

"[typescript]": {

"editor.defaultFormatter": "esbenp.prettier-vscode"

},

"[typescriptreact]": {

"editor.defaultFormatter": "esbenp.prettier-vscode"

},

"[json]": {

"editor.defaultFormatter": "esbenp.prettier-vscode"

},

"[markdown]": {

"editor.defaultFormatter": "yzhang.markdown-all-in-one"

},

// ============= plugin config begin =============

// sublime 按 tab 自动补全 tag

"auto-close-tag.SublimeText3Mode": true,

// emmet

"emmet.triggerExpansionOnTab": true,

"emmet.includeLanguages": {

"vue-html": "html",

"wxml": "html",

"javascript": "javascriptreact"

},

"emmet.syntaxProfiles": {

"vue-html": "html",

},

// 代码格式

"prettier.singleQuote": true,

"prettier.requireConfig": true,

// sync githubg 同步模块

"sync.gist": "Your GitHub Gist ID",

"sync.autoDownload": false,

"sync.autoUpload": true,

"sync.forceDownload": false,

"sync.removeExtensions": true,

"sync.syncExtensions": true,

"sync.forceUpload": true,

// gitlens, git 可视化功能增强

"gitlens.advanced.messages": {

"suppressCommitHasNoPreviousCommitWarning": false,

"suppressCommitNotFoundWarning": false,

"suppressFileNotUnderSourceControlWarning": false,

"suppressGitVersionWarning": false,

"suppressLineUncommittedWarning": false,

"suppressNoRepositoryWarning": false,

"suppressResultsExplorerNotice": false,

"suppressShowKeyBindingsNotice": true

},

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

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

// markdown

"markdownlint.config": {

"MD033": {

"allowed_elements": [

"iframe",

"details",

"summary",

"div",

"hr",

"br",

"a",

]

}

},

"workbench.colorTheme": "One Monokai",

"minapp-vscode.disableAutoConfig": true,

"go.formatTool": "goimports",

"go.useLanguageServer": true,

"editor.formatOnSave": true,

}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值