File tree 2 files changed +23
-8
lines changed
2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,18 @@ title: cursor
14
14
15
15
查看 cursor 官方文档:[ rules-for-ai] ( https://docs.cursor.com/context/rules-for-ai ) ,然后添加以下规则:
16
16
17
- ### Python
17
+ ### fba
18
18
19
- ::: note
20
- 此规则可用于任何 Python 3.10+ 项目
19
+ ::: tip
20
+ 此规则仅限用于 fba 项目
21
21
:::
22
22
23
- @[ code mdc] ( ../../code/python .mdc )
23
+ @[ code mdc] ( ../../code/fastapi .mdc )
24
24
25
- ### FastAPI
25
+ ### Python
26
26
27
- ::: tip
28
- 此规则仅限用于 fba 项目
27
+ ::: note
28
+ 此规则可用于任何 Python 3.10+ 项目
29
29
:::
30
30
31
- @[ code mdc] ( ../../code/fastapi .mdc )
31
+ @[ code mdc] ( ../../code/python .mdc )
Original file line number Diff line number Diff line change 23
23
" --reload"
24
24
],
25
25
"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
26
41
}
27
42
]
28
43
}
You can’t perform that action at this time.
0 commit comments