Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Dot EnvNew to Visual Studio Code? Get it now.
Dot Env

Dot Env

env

|
16 installs
| (1) | Free
| Sponsor
Improved version of Support for dotenv file syntax
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode .env Syntax Highlighting

This is an enhanced port of DotENV specifically designed for VSCode, offering improved performance and additional features.

Example

Key Improvements

This version includes:

  • Enhanced Syntax Highlighting: More intuitive color schemes for better readability.
  • Custom File Association: Supports various naming conventions, ensuring seamless integration with your existing projects.
  • User-Friendly Configuration: Simplified settings for easy adaptation to different workflows.

File Association

To enable dotenv support for specific .env file naming conventions (e.g., .env.jenkins), adjust the files.associations setting as follows:

"files.associations": {
    ".env.jenkins": "dotenv"
}

With this configuration, files named .env.jenkins will be recognized as dotenv files.

Acknowledgements

  • Zayn Ali for the original DotENV
  • motdotla for the logo design.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft