microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.66k stars 288 forks source link

init different environment in each remote ssh windows #8534

Open polatouche6 opened 1 year ago

polatouche6 commented 1 year ago

I'm Using Golang for development work, using 1.20 to learn some project source code and 1.17 for development work. when open some project using remote-ssh plugin, vscode will open some corresponding windows, but due to different versions of Golang, I need to load corresponding environment, it is very inconvenient.

So can we execute separate shells for each window, I will use shell file to loading different environment variables.

I think terminal.integrated.automationShell.linux is global, not initialize for a single window, if you have a better idea, tell me please.

polatouche6 commented 1 year ago

I'm sorry, terminal.integrated.automationShell.linux is a config of terminal, not for vscode window