File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments