11{
2- "sqltools.connections" : [
3- {
4- "mysqlOptions" : {
5- "authProtocol" : " default"
6- },
7- "previewLimit" : 50 ,
8- "server" : " localhost" ,
9- "port" : 13306 ,
10- "driver" : " MariaDB" ,
11- "name" : " cms" ,
12- "group" : " local" ,
13- "database" : " cms" ,
14- "username" : " root" ,
15- "password" : " root"
16- }
17- ]
2+ "editor.formatOnSave" : true ,
3+ // python 配置
4+ "[python]" : {
5+ "editor.defaultFormatter" : " charliermarsh.ruff" , // 默认使用 Ruff 格式化
6+ "editor.formatOnSave" : true , // 保存时自动格式化
7+ "editor.codeActionsOnSave" : {
8+ "source.fixAll.ruff" : " explicit" , // 保存时自动修复可修复的 lint 错误
9+ "source.organizeImports.ruff" : " explicit" // 保存时自动排序 import 语句
10+ }
11+ },
12+ // "isort.args": ["--profile", "ruff"],
13+ "notebook.formatOnSave.enabled" : true ,
14+ "notebook.diff.overviewRuler" : true ,
15+ "notebook.consolidatedRunButton" : true ,
16+ "sqltools.connections" : [
17+ {
18+ "mysqlOptions" : {
19+ "authProtocol" : " default"
20+ },
21+ "previewLimit" : 50 ,
22+ "server" : " localhost" ,
23+ "port" : 13306 ,
24+ "driver" : " MariaDB" ,
25+ "name" : " cms" ,
26+ "group" : " local" ,
27+ "database" : " cms" ,
28+ "username" : " root" ,
29+ "password" : " root"
30+ }
31+ ],
32+ "dbcode.connections" : [
33+ {
34+ "connectionId" : " ccGhCgCcO7YUxlzugel9Z" ,
35+ "name" : " redis.local" ,
36+ "driver" : " redis" ,
37+ "connectionType" : " host" ,
38+ "host" : " 127.0.0.1" ,
39+ "port" : 6379 ,
40+ "ssl" : false ,
41+ "username" : " default" ,
42+ "savePassword" : " secretStorage" ,
43+ "readOnly" : false ,
44+ "connectionTimeout" : 30
45+ }
46+ ],
47+ "python.testing.pytestArgs" : [
48+ " ."
49+ ],
50+ "python.testing.unittestEnabled" : false ,
51+ "python.testing.pytestEnabled" : true ,
52+ "files.associations" : {
53+ "*.html" : " django-html" ,
54+ "*.tpl" : " django-html"
55+ },
56+ "[django-html]" : {
57+ "editor.formatOnSave" : true ,
58+ "editor.defaultFormatter" : " esbenp.prettier-vscode"
59+ },
60+ "Codegeex.CompletionDelay" : 0.5 ,
61+ "Codegeex.GenerationPreference" : " block" ,
62+ "marscode.chatLanguage" : " cn" ,
63+ //
64+ // 隐藏文件+文件夹
65+ //
66+ "files.exclude" : {
67+ "**/.git" : true ,
68+ "**/.idea" : true , // idea
69+ "**/node_modules" : true , // node
70+ "**/.venv" : true , // python
71+ "**/.mypy_cache" : true , // python
72+ "**/.pytest_cache" : true , // python
73+ "**/__pycache__" : true , // python
74+ "**/build" : true ,
75+ // "**/out": true,
76+ // "**/dist": true,
77+ "**/target" : true ,
78+ // "**/tmp": true // 临时文件// 会隐藏目录!!!
79+ },
80+ // 搜索排除
81+ "search.exclude" : {
82+ "**/.git" : true ,
83+ "**/.venv" : true , // python
84+ "**/.mypy_cache" : true , // python
85+ "**/.pytest_cache" : true , // python
86+ "**/__pycache__" : true , // python
87+ "**/node_modules" : true , // node
88+ "**/build" : true ,
89+ "**/dist" : true ,
90+ "**/dist-tsc" : true ,
91+ "**/out" : true ,
92+ "**/out-tsc" : true ,
93+ "**/target" : true , // rust
94+ },
95+ // 搜索结果排除
96+ "explorer.autoRevealExclude" : {
97+ "**/.mypy_cache" : true ,
98+ "**/.venv" : true ,
99+ "**/node_modules" : true ,
100+ "**/pytest_cache" : true
101+ },
102+ //
103+ // TODO X: 文件监控, 关键忽略!!!
104+ //
105+ "files.watcherExclude" : {
106+ "**/.venv" : true , // python
107+ "**/.mypy_cache" : true , // python
108+ "**/.pytest_cache" : true , // python
109+ "**/__pycache__" : true , // python
110+ "**/build" : true ,
111+ "**/node_modules" : true , // node
112+ "**/out" : true ,
113+ "**/dist" : true ,
114+ "**/tmp" : true ,
115+ "**/target" : true , // rust
116+ },
18117}
0 commit comments