Skip to content

Commit 999dc6e

Browse files
committed
update
1 parent b0d6b30 commit 999dc6e

23 files changed

+227
-19
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ venv.bak/
123123
# VS Code which you may wish to be included in version control, so this line
124124
# is commented out by default.
125125
#.vscode/
126+
**/.vscode/*
127+
!**/.vscode/extensions.json
128+
!**/.vscode/launch.json
129+
!**/.vscode/tasks.json
130+
!**/.vscode/faq.md
131+
126132

127133
# Flutter/Dart/Pub related
128134
**/doc/api/

.vscode/extensions.json

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
{
2-
"recommendations": [
3-
"task.vscode-task"
4-
]
2+
"recommendations": [
3+
"task.vscode-task",
4+
// "ms-python.isort",
5+
// "ms-python.black-formatter",
6+
"ms-python.python",
7+
"ms-python.debugpy",
8+
"ms-python.vscode-pylance", // 显示函数文档
9+
"charliermarsh.ruff",
10+
"redhat.vscode-yaml",
11+
"dbcode.dbcode",
12+
"ms-azuretools.vscode-docker",
13+
"ms-dotnettools.vscode-dotnet-runtime",
14+
// "ms-dotnettools.csharp",
15+
// "ms-dotnettools.csdevkit",
16+
"ms-vscode-remote.remote-containers",
17+
"ms-vscode-remote.remote-ssh",
18+
"editorconfig.editorconfig",
19+
"tamasfe.even-better-toml",
20+
"antfu.file-nesting",
21+
"ms-ossdata.vscode-postgresql",
22+
"njpwerner.autodocstring",
23+
"oderwat.indent-rainbow",
24+
"shd101wyy.markdown-preview-enhanced",
25+
"k3a.theme-dark-plus-contrast",
26+
"joshumcode.functional-contrast",
27+
// "bito.bito",
28+
"continue.continue",
29+
// "supermaven.supermaven",
30+
"alibaba-cloud.tongyi-lingma",
31+
"marscode.marscode-extension",
32+
"vue.volar"
33+
]
534
}

.vscode/settings.json

Lines changed: 115 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,117 @@
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
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)