Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Dotfile Value ToggleNew to Visual Studio Code? Get it now.
Dotfile Value Toggle

Dotfile Value Toggle

spencerwmiles

| (0) | Free
Toggle boolean values in dot files (.env, .flags, etc.) with one click
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dotfile Value Toggle

One-click value toggling for dot files (.env, .flags, .config).

Features

  • Sidebar Panel — View and toggle values from Explorer with filter controls
  • Status Bar — Quick pick menu for all toggleable values
  • CodeLens & Hover — Toggle directly in the editor
  • Gitignore Protection — Warns when toggling untracked files

Supported Values

Cycles
true ↔ false, TRUE ↔ FALSE
yes ↔ no, YES ↔ NO
1 ↔ 0, on ↔ off, ON ↔ OFF
enabled ↔ disabled, ENABLED ↔ DISABLED
production ↔ development, prod ↔ dev

Quoted values preserved ("true" → "false").

Configuration

{
  "dotfileValueToggle.filePatterns": ["**/.env*", "**/.flags", "**/.config"],
  "dotfileValueToggle.toggleValues": [
    ["true", "false"],
    ["dev", "staging", "prod"]
  ],
  "dotfileValueToggle.showOnlyToggleable": true,
  "dotfileValueToggle.showGitignoreWarning": true
}

Installation

Search "Dotfile Value Toggle" in the VS Code Extensions marketplace.

License

MIT

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