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

Environment Variables cannot be accessed #18

Open
Vonor opened this issue May 31, 2024 · 0 comments
Open

Environment Variables cannot be accessed #18

Vonor opened this issue May 31, 2024 · 0 comments

Comments

@Vonor
Copy link

Vonor commented May 31, 2024

Apparently in VS Code you can use ${env:SOMEVAR} to use the environment variable's content.
However, in a powerHeader template setup I am trying the following:

settings.json

    "powerHeader.variables": [
      "<author>=\"${env:USERFN}\"",
    ],
    "powerHeader.template": "Author: <author>"

Upon inserting the header into a new file I get

Author: USERFN

This seems to be a bug in my opinion. Or is there another way of doing that, which I couldn't find in the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant