Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SecretsNew to Visual Studio Code? Get it now.
Secrets

Secrets

pomdtr

|
3,467 installs
| (1) | Free
Manage your Credentials in a Secure Way
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Secrets

Define secrets shared accross workspaces, injected as environment variables. Supports both local and remote workspaces.

Usage

Use the secrets tree view to create/edit/view/delete your secrets/folders.

demo

Folders

All secrets belong to a folder. Folders allow you scope a set of secrets to specific workspaces.

Use the secrets.enabledFolders setting to specify which folders to enable specific folders in you current workspace (if you do not set it, only secrets from the default folder will be loaded).
Alternatively, you can use the enable/disable context buttons on the folder items in the secret explorer view.

{
    // Both the default and github folders will be loaded in this workspace
    "secrets.enabledFolders": [
        "default",
        "github"// If one secret is defined in multiple folders, the secret from the last folder in the array will be used.
    ]
}

How does it work ?

You secrets are stored in the system keychain. Once you start vscode, the secrets are loaded from the keychain, and then injected as environment variables.

The secrets will not be synchronised between devices. You can migrate your secrets use the Import Secrets and Export Secrets commands.

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