{
// 更改默认的集成终端
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
// 删除时,是否确认
"explorer.confirmDelete": false,
// 失去焦点时,文件自动保存
"files.autoSave": "onFocusChange",
//控制折行方式
"editor.wordWrap": "on",
// 调整窗口的缩放级别
"window.zoomLevel": 1,
// 控制打开的编辑器是否显示在选项卡中
"workbench.editor.showTabs": true,
// 配置语言的文件关联(如: "*.extension": "html")。 这些关联的优先级高于已安装语言的默认关联。
"files.associations": {
"*.vue": "vue",
"*.wpy": "vue",
"*.wxml": "html",
"*.wxss": "css",
"*.js": "javascriptreact",
"*.json": "jsonc"
},
"eslint.options": {
// "plugins": ["html"],
"extensions": [
".js",
".vue",
".ts",
".tsx"
]
},
//为了符合eslint的两个空格间隔原则
"editor.tabSize": 2, // #每次保存的时候自动格式化
// 自动修复
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
// 总是显示ESLint状态栏
"eslint.alwaysShowStatus": true,
// 启用/禁用 HTML 标记的自动关闭。
"html.autoClosingTags": true,
// 启用后,按下 TAB 键,将展开 Emmet 缩写。
"emmet.triggerExpansionOnTab": true,
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
// 文件头 创作人
"fileheader.Author": "wangliang",
// 文件头 修改人
"fileheader.LastModifiedBy": "wangliang",
"better-comments.tags": [
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "//",
"color": "#474747",
"strikethrough": true,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "todo",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "*",
"color": "#98C379",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
}
],
"postcssSorting.config": {
"order": [
"custom-properties",
"dollar-variables",
"declarations",
"at-rules",
"rules"
],
"properties-order": ["display", "position", "top", "right", "bottom", "left"]
},
"sync.gist": "35f8f1fb55b657c5777f1af6d1e2564f",
"sync.autoDownload": false,
"sync.autoUpload": false,
"workbench.iconTheme": "vscode-icons",
}
vscode配置文件setting.json
最新推荐文章于 2025-06-12 18:06:32 发布