Skip to content

Commit 5d364c9

Browse files
committed
update docs
1 parent a05d721 commit 5d364c9

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

docs/backend/ide/cursor.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ title: cursor
1414

1515
查看 cursor 官方文档:[rules-for-ai](https://docs.cursor.com/context/rules-for-ai),然后添加以下规则:
1616

17-
### Python
17+
### fba
1818

19-
::: note
20-
此规则可用于任何 Python 3.10+ 项目
19+
::: tip
20+
此规则仅限用于 fba 项目
2121
:::
2222

23-
@[code mdc](../../code/python.mdc)
23+
@[code mdc](../../code/fastapi.mdc)
2424

25-
### FastAPI
25+
### Python
2626

27-
::: tip
28-
此规则仅限用于 fba 项目
27+
::: note
28+
此规则可用于任何 Python 3.10+ 项目
2929
:::
3030

31-
@[code mdc](../../code/fastapi.mdc)
31+
@[code mdc](../../code/python.mdc)

docs/code/launch.json

+15
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@
2323
"--reload"
2424
],
2525
"justMyCode": true
26+
},
27+
{
28+
"name": "Python 调试程序",
29+
"type": "debugpy",
30+
"request": "launch",
31+
"program": "${file}",
32+
"console": "integratedTerminal",
33+
// 指定 python 解释器,请根据实际情况自行修改
34+
//"python": "${workspaceFolder}/.venv/bin/python", // MacOS or Linux
35+
//"python": "${workspaceFolder}/.venv/Scripts/python.exe", // Windows
36+
"env": {
37+
"PYTHONPATH": "${workspaceFolder};${env:PYTHONPATH}"
38+
},
39+
"envFile": "${workspaceFolder}/backend/.env",
40+
"justMyCode": true
2641
}
2742
]
2843
}

0 commit comments

Comments
 (0)