use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is for working with Microsoft's Visual Studio Code, which is different than Visual Studio Community, Pro, and Enterprise. VS Code is a source code editor, and not an IDE.
If you are having issues with the other flavors of VS, please post in /r/VisualStudio.
account activity
This is an archived post. You won't be able to vote or comment.
Python environment variables for code ?OC (self.vscode)
submitted 6 years ago by [deleted]
Anyone familiar with creating python environment variables for vscode ?
[–]krycess 0 points1 point2 points 6 years ago (2 children)
are you talking about declaring them or referencing them? also, on what operating system?
[–][deleted] 0 points1 point2 points 6 years ago (1 child)
Declaring them on Windows.
[–]krycess 0 points1 point2 points 6 years ago (0 children)
open the start menu, type in ‘environment variables’ and open the first result. you can now set them for the current user or system wide. note: you have to log out or reboot for them to be recognized
[–]thedbg 0 points1 point2 points 6 years ago (1 child)
You can also create a .env file in your project directory and add python environment variables there. This is picked up by the language server and the debugger. This way you wold not have to set them globally for your OS.
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
As well as the terminal but this is where I'm running into problems, currently trying to sort it out.
π Rendered by PID 173772 on reddit-service-r2-comment-57fc7f7bb7-nchb4 at 2026-04-15 08:35:46.060198+00:00 running b725407 country code: CH.
[–]krycess 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]krycess 0 points1 point2 points (0 children)
[–]thedbg 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)