Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

Set environment variables when using Visual Studio Code with remote-shh extension

$
0
0

I am trying to use Visual Studio Code with Remote-SSH extention (so I am working on a Windows machine while project files are on remote Linux server).

In order to build the project (C++ & CMake) I need to execute a script which sets up some environment variables.

Is there a way to execute such script automatically when vscode starts up its server?

It seems to be useless for me to call this script using vscode's terminal because then these variables are availiable only in this terminal session and not for the tools & extensions which vscode uses.


Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>