I'm defining a custom $PATH
environment variable in my ~/.bash_profile
(on a Mac), like so:
PATH="$HOME/.cargo/bin:$PATH:$HOME/bin"
However, VS Code of course does not run my .bash_profile
, so it does not have my custom paths. In fact, if I Toggle Developer Tools and check process.env.PATH
, it doesn't even seem to have /usr/local/bin
.
How do I globally set the $PATH
environment variable in VS Code?
(I want to set it globally, not per project or per task, since I'm maintaining a lot of small packages.)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…