A visual editor for environment files with automatic secret masking.
Dotenv Mask Editor provides a table-based interface for .env files. It is designed to reduce the accidental exposure of sensitive values by masking strings that meet a length threshold. All processing is done locally within your editor.
- Custom Editor: Provides a grid view for
.env,.env.*, and*.envfiles. - Masking: Values with 6 or more characters are replaced with
******in the display. - Editing: Supports direct modification of both keys and values.
- Privacy: Masked values are only revealed during active editing.
- Local execution: The extension has no external dependencies and does not make network requests.
- Open a
.envfile. The extension should associate automatically. - Click a cell to edit its content. Masked values will reveal their raw text while the cell is focused.
- Move focus away from the cell to save changes and re-apply masking.
If the file opens in the standard text editor, right-click the file tab and select "Reopen Editor With..." followed by "Dotenv Mask Editor".
Custom file patterns can be added via VS Code settings:
{
"envSecretMasking.filePatterns": [
"*.config"
]
}Available through the VS Code Marketplace. Search for "Dotenv Mask Editor".
MIT License
Contributions are welcomed!
