What the .env workbench parses
The .env workbench understands the informal dotenv format used by most Node.js, Python, and Docker projects. It handles quoted values, inline comments, and the export keyword prefix. Every parsed entry is shown with its source line number, which is useful for navigating large files.
| Syntax | Parsed as | Notes |
|---|---|---|
| KEY=value | Unquoted string | Inline comment extracted if "# ..." follows |
| KEY="value" | Double-quoted | Outer quotes stripped; \" unescaped inside |
| KEY='value' | Single-quoted | Content is literal — no escape processing |
| export KEY=value | Same as KEY=value | "export" keyword is silently stripped |
| # comment | (skipped) | Full-line comments are ignored |
| KEY=value # comment | value + comment | Inline comment extracted from unquoted values |
Duplicate key behaviour
The .env format has no specification for duplicate keys — different loaders handle them differently. This workbench preserves all occurrences in the entry list and highlights duplicates in the Table view with a warning badge. The Validator also surfaces duplicate keys as warnings (not errors).
Comment handling
Full-line comments (lines starting with #) are silently ignored. Inline comments on unquoted values (KEY=value # note) are extracted and shown in the Comment column of the Table view, but are not included in JSON or YAML output. Quoted values cannot carry inline comments — KEY="val # not a comment" treats everything between the quotes as the value.
Frequently Asked Questions
Your files stay on your computer. Dad promised.