For basically all my projects, I have a dev-session.sh script that sets up environment variables and paths for language runtimes (usually NodeJS and Python.)
Every time I open a new terminal in VSCode, I run source dev-session.sh.
It would save me a lot of key presses over the years if VSCode could add a way to automatically initialize new terminal windows.
One way to do this would be to make a general version of the vscode-python python.terminal.activateEnvironment option. For example an option like terminal.integrated.shellSetupCommand that I could set to a string like "source dev-session.sh".
All this would need to do is wait 500ms after a new terminal is opened, then write the contents of the setting followed by "\n".
Our issue tracking requires confirmation by a second community member. Anyone but OP can do so by adding a comment /confirm. See also our issue reporting guidelines.
For basically all my projects, I have a
dev-session.sh
script that sets up environment variables and paths for language runtimes (usually NodeJS and Python.)Every time I open a new terminal in VSCode, I run
source dev-session.sh
.It would save me a lot of key presses over the years if VSCode could add a way to automatically initialize new terminal windows.
One way to do this would be to make a general version of the vscode-python
python.terminal.activateEnvironment
option. For example an option liketerminal.integrated.shellSetupCommand
that I could set to a string like"source dev-session.sh"
.All this would need to do is wait 500ms after a new terminal is opened, then write the contents of the setting followed by "\n".