How to add anaconda powershell to vscode?
anaconda, visual-studio-code
Solution
I ended up using this (although it has tendency to break).
"terminal.integrated.shellArgs.windows": [
"-ExecutionPolicy"
, "ByPass"
, "-NoExit"
, "-Command"
, "& 'C:\\ProgramData\\Anaconda3\\shell\\condabin\\conda-hook.ps1' ; conda activate 'C:\\ProgramData\\Anaconda3'"
],
Problem
I'm trying to add anaconda prompt to start up instead of powershell to avoid having to add python to env variables. ``` "terminal.integrated.shellArgs.windows": [ <args> ] ``` I tried putting them into single line, splitting them "-Foo Goo" as well as "-Foo","Goo". Each version leads to either error or simply ignoring the "-Command" parameter (the lines simply get pasted, but not executed).