Cursor终端配置python虚拟环境

终端 profile 设置

在配置文件中,确保要有如下配置:

即可以启动 vnpy python虚拟环境

1
2
3
4
5
6
7
8
9
{
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": "C:\\Windows\\System32\\cmd.exe",
"args": ["/K", "D:\\miniforge3\\Scripts\\activate.bat", "vnpy"]
}
},
"terminal.integrated.defaultProfile.windows": "Command Prompt"
}