# @block group:name … # @end marks a block. A block without its # @end is ignored and shows a warning. Blocks in the same group act like radio buttons — enabling database:local disables database:staging.
A block without a group (# @block debug) is a plain on/off toggle.
Only KEY=value lines are toggled (including multi-line quoted values); ordinary comments stay untouched.
Add @danger to mark a block as dangerous, e.g. @block database:production @danger. Switching to it asks for confirmation, it shows a ❗ in the switcher and above the block, and the status bar turns red while it is active.
Switching: the status bar item per group, the buttons above each # @block line, or the command "Env Blocks: Switch Block".
Settings:envBlocks.file (default .env) and envBlocks.autoSave (default true).