forked from Zeyi-Lin/HivisionIDPhotos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.json
107 lines (104 loc) · 2.8 KB
/
settings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
/** 文件夹材质 */
"workbench.iconTheme": "material-icon-theme",
/* 自定义图标关联 */
"material-icon-theme.folders.associations": {
"swanlab": "api",
"swanlog": "log",
"readme_files": "custom",
"run": "core",
"system": "core",
"data": "guard",
"unit": "test",
"converter": "log",
"tutils": "utils"
},
"material-icon-theme.files.associations": {
".env.mock": "Tune",
"requirements-dev.txt": "python-misc",
"requirements-media.txt": "python-misc"
},
/** 前端代码格式化部分,eslint和prettier */
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
// 每次保存的时候自动格式化
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.format.enable": true,
/** 后端代码格式化部分,python格式化 */
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
/** TODO tree 配置 */
"todo-tree.general.tags": [
"TODO", // 待办
"FIXME", // 待修复
"COMPAT", // 兼容性问题
"WARNING" // 警告
],
"todo-tree.highlights.customHighlight": {
"TODO": {
"icon": "check",
"type": "tag",
"foreground": "#ffff00",
"iconColour": "#ffff"
},
"WARNING": {
"icon": "alert",
"type": "tag",
"foreground": "#ff0000",
"iconColour": "#ff0000"
},
"FIXME": {
"icon": "flame",
"type": "tag",
"foreground": "#ff0000",
"iconColour": "#ff0000"
},
"COMPAT": {
"icon": "flame",
"type": "tag",
"foreground": "#00ff00",
"iconColour": "#ffff"
}
},
/** i18n */
"i18n-ally.sortKeys": true,
"i18n-ally.keepFulfilled": true,
"i18n-ally.localeCountryMap": {
"en": "br", // show UK's flag instead of US's
"zh": "cn", // show Chinese flag for 'zh'
"ko": "ko" // show Korean flag for 'ko'
},
"i18n-ally.localesPaths": ["vue/src/i18n"],
"i18n-ally.keystyle": "nested", // 翻译路径格式,
"i18n-ally.namespace": true,
"i18n-ally.enabledParsers": ["json", "json5"],
"i18n-ally.sourceLanguage": "zh-CN", // 翻译源语言 是你翻译文件的名字
"i18n-ally.displayLanguage": "zh-CN", //显示语言
/** tailwind */
"css.customData": [".vscode/tailwind.json"],
/** python代码注释 */
"autoDocstring.docstringFormat": "numpy",
/** markdown格式检查 */
"markdownlint.config": {
// 允许使用html标签
"MD033": false,
// 允许首行不是level1标题
"MD041": false
},
/** 不显示文件夹 */
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/__pycache__": true,
".idea": true
},
"python.testing.pytestEnabled": true
}