Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

${env:USER} or ${env:USERNAME} is not available. #73184

Closed
ryanpcmcquen opened this issue May 2, 2019 · 1 comment
Closed

${env:USER} or ${env:USERNAME} is not available. #73184

ryanpcmcquen opened this issue May 2, 2019 · 1 comment
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-find Editor find operations

Comments

@ryanpcmcquen
Copy link

  • VSCode Version: 1.33.1
  • OS Version: Mac OS 10.14.x

Steps to Reproduce:

  1. Use ${env:USER} inside of settings.json, notice that it does not work.

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

According to the documentation here, this should work:
https://code.visualstudio.com/docs/editor/variables-reference#_environment-variables

@vscodebot vscodebot bot added the editor-find Editor find operations label May 2, 2019
@RMacfarlane
Copy link
Contributor

Hey @ryanpcmcquen , environment variables are currently only available in tasks.json and launch.json. (This is at the top of the documentation page.) There's an open feature request to add support for settings.json (#2809), so I will close this as a duplicate. Thanks!

@RMacfarlane RMacfarlane added the *duplicate Issue identified as a duplicate of another issue(s) label May 2, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-find Editor find operations
Projects
None yet
Development

No branches or pull requests

2 participants