forked from mnt-ltd/moredoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ go.sum | |
*.pb.go | ||
*.pb.gw.go | ||
*.pb.validate.go | ||
.vscode | ||
ginrpc* | ||
dist | ||
output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
// tab 大小为4个空格 | ||
"editor.tabSize": 4, | ||
// 100 列后换行 | ||
"editor.wordWrapColumn": 100, | ||
// 保存时格式化 | ||
"editor.formatOnSave": true, | ||
// 开启 vscode 文件路径导航 | ||
"breadcrumbs.enabled": true, | ||
// prettier 设置语句末尾不加分号 | ||
"prettier.semi": false, | ||
// prettier 设置强制单引号 | ||
"prettier.singleQuote": true, | ||
// 选择 vue 文件中 template 的格式化工具 | ||
"vetur.format.defaultFormatter.html": "prettyhtml", | ||
// 显示 markdown 中英文切换时产生的特殊字符 | ||
"editor.renderControlCharacters": true, | ||
// 设置 eslint 保存时自动修复 | ||
"eslint.autoFixOnSave": true, | ||
// eslint 检测文件类型 | ||
"eslint.validate": [ | ||
"vue", | ||
"html", | ||
"javascript", | ||
"typescript", | ||
"javascriptreact", | ||
"typescriptreact" | ||
], | ||
// vetur 的自定义设置 | ||
"vetur.format.defaultFormatterOptions": { | ||
"prettier": { | ||
"singleQuote": true, | ||
"semi": false | ||
} | ||
}, | ||
// vue 扩展的文件默认使用 prettier 进行格式化 | ||
"[vue]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |