Skip to content

Failing to set environment variables #90198

@Markpajr

Description

@Markpajr
  • VSCode Version: 1.41.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Open terminal in vs code with ctrl+~
  2. Attempt to set an environment variable with setx test 'teststring'
  3. Above command returns "Success: Specified variable was saved"
  4. Attempt to check environment variable with get-childitem env:
  5. The variable does not appear in the list of variables, and does not show when you try calling with echo %test%

Maybe I'm just doing something wrong?

Does this issue occur when all extensions are disabled?: Yes/No

Edit: This issue can be closed, I didn't realize the default terminal VSCode was using is Powershell, and powershell env variables are set with $Env and not setx.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions