cursor里切换打开command时修改默认的conda的env环境
·
关键就是command加了参数args:"d:\ProgramData\anaconda3\Scripts\activate bkRate",完整配置内容如下:
{
"window.commandCenter": true,
// 设置默认终端为 CMD
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": "C:\Windows\System32\cmd.exe",
"args": [
"/k",
"d:\ProgramData\anaconda3\Scripts\activate bkRate"
]
}
},
"python.defaultInterpreterPath": "C:\Users\Administrator\.conda\envs\bkRate\python.exe",
"[python]": {
"diffEditor.ignoreTrimWhitespace": false,
"editor.defaultColorDecorators": "never",
"editor.formatOnType": true,
"editor.wordBasedSuggestions": "off"
},
"files.autoSave": "afterDelay",
"cursor.general.disableHttp2": true
}
更多推荐



所有评论(0)