Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>@env-spec (.env) language supportNew to Visual Studio Code? Get it now.
@env-spec (.env) language support

@env-spec (.env) language support

varlock

|
39 installs
| (1) | Free
Adds syntax highlighting and additional tooling for @env-spec enabled .env files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

@env-spec VSCode Extension

This VSCode extension adds @env-spec language support for your .env files.

This new DSL builds upon the common .env format, adding support for JSDoc style @decorator comments to provide additional metadata about your environment variables, and explicit function-call style values, to load data from external sources.

@env-spec example

Using @env-spec enabled tools (like varlock) can use this additional information to securely load and validate your environment variables, without any additional custom code.

Features

  • Syntax highlighting
  • Hover info for common @decorators
  • Comment continuation (automatically continue comment blocks when you hit enter within one)

How to use this extension

The new @env-spec language mode should be enabled automatically for any .env and .env.* files, but you can always set it via the Language Mode selector in the bottom right of your editor.

Feeback, Contributing, Support

We are actively iterating on @env-spec and your feedback is invaluable. Please read through our RFC and let us know what you think!

For more immediate support, or to chat with us, please join our Discord.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft