关键就是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

}

Logo

这里是“一人公司”的成长家园。我们提供从产品曝光、技术变现到法律财税的全栈内容,并连接云服务、办公空间等稀缺资源,助你专注创造,无忧运营。

更多推荐