Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Dotenv Official +VaultNew to Visual Studio Code? Get it now.

Dotenv Official +Vault

Dotenv

|
24,897 installs
| (3) | Free
Official Dotenv. Auto-cloaking, auto-completion, in-code secret peeking, and more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
dotenv-vscode

Official Dotenv for VSCode

Auto-cloaking, auto-completion, in-code secret peeking, and more.

Install Usage Commands Changelog

Version

Bonus: You also get syntax highlighting and Dotenv Vault.



Install

Install using VSCode Command Palette

  1. Go to View -> Command Palette or press Ctrl+Shift+P
  2. Then enter Install Extension
  3. Search for Dotenv
  4. Select Official Dotenv and click Install

Usage

Auto-cloaking

It just works. Open your .env files in VSCode, and they will be auto-cloaked. Click the 'Toggle auto-cloaking' link at the top of your .env file to toggle it off.

Multiple .env file types supported.

  • .env
  • .env.vault
  • .env.me
  • .env.example
  • .env.*
  • .flaskenv

Auto-completion

Start typing process.env. (or language specific env statement) and your cursor will be populated with auto-completion options directly from your .env file.

Multiple languages supported.

  • JavaScript/TypeScript/NodeJS
  • Ruby
  • Python
  • PHP
  • Go
  • Java
  • C#
  • Rust

In-code secret peeking

Hover your mouse over a process.env.SECRET_KEY or a ENV["SECRET_KEY"], and you will be able to peek at its value without having to open your .env file.

Multiple languages supported.

  • JavaScript/TypeScript/NodeJS
  • Ruby
  • Python
  • PHP
  • Go
  • Java
  • C#
  • Rust

Syntax Highlighting

It just works. Open your .env files in VSCode, they will now be syntax highlighted.


Vault

Vault lets you sync your .env files quickly & securely. Stop sharing them over insecure channels like Slack and email, and never lose an important .env file again.

Read more about Vault.

Usage is similar to git. Run CMD+Shift+P (or Ctrl+Shift+P) and start typing dotenv.

dotenv new

Follow those instructions and then run:

dotenv login

Then run push and pull

dotenv push
dotenv pull

See Dotenv Vault in action:

Visit dotenv.org/docs to learn more.

Commands

dotenv new       Create your project
dotenv login     Log in to dotenv-vault
dotenv logout    Log out
dotenv open      Open project page
dotenv push      Push .env securely
dotenv pull      Pull .env securely
dotenv versions  List version history
dotenv whoami    Display the current logged in user
dotenv status    Check dotenv-vault operational status

Visit dotenv.org/docs for details per command.

CHANGELOG

See CHANGELOG



Thank you for using Dotenv.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft