最近miniconda太多环境,vs code编辑切换太麻烦,于是整个快捷键。cmd+shift+p设置user settingup.json
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.integrated.shellArgs.windows": [
"-ExecutionPolicy",
"ByPass",
"-NoExit",
"-Command",
"& 'C:\\Users\\HUMAN\\anaconda3\\shell\\condabin\\conda-hook.ps1'; conda activate 'C:\\Users\\HUMAN\\anaconda3' ;activate gym"
],
比如上图这样设置user settingup.json就可以自动打开conda环境并且自动跳转激活(gym)环境
如下图的gym环境。
根据cmd+shift+p输入
terminalHere.create terminal
可以正在打开的文件所在位置。
只要给这条命令设置快捷键就行,通过cmd+shift+p,搜索keyboard看下快捷键设置,我写为ctrl+alt+e。