amigo421
amigo421

Reputation: 2537

Visual Studio Code: setting up environment variables

could not find this ability, is this really there in the configuration of VSCode? to add environment variables to specific workspace? I mean settings.json which is located in the work folder. So I'm using cmake tools extension which requires some environment variables for the build

Upvotes: 4

Views: 3211

Answers (2)

Roland Sarrazin
Roland Sarrazin

Reputation: 1345

In the meantime this is supported, see the cmake.environment, cmake.BuildEnvironment and cmake.configureEnvironment extension settings.

Upvotes: 0

andresgottlieb
andresgottlieb

Reputation: 950

I think that functionality is not yet supported in VSCode. There is a feature-request, though, and if you want it implemented you should add a thumb-up reaction to the issue's first comment, or even better, code it :)

Upvotes: 1

Related Questions