Security & Privacy: This extension processes everything locally on your machine - no server communication, no data collection. The code is open source and available on GitHub. See SECURITY.md for details.
A Visual Studio Code extension that automatically blurs secret values in .env files and other configurable files to prevent accidental exposure of sensitive information.
- Automatically detects and blurs sensitive information in .env files and other configured files
- Smart pattern recognition for common secret patterns
- Easy toggle functionality
- Customizable file patterns and sensitive content detection
- Configurable blur strength for better visibility control
- JSON file support with intelligent value detection
- Custom pattern support for specialized use cases
- Real-time updates as you edit files
- Minimal performance impact

From VS Code:
- Open VS Code
- Press
Ctrl+P/Cmd+P - Type
ext install env-shield - Press Enter
From Extensions Marketplace
-
Open VS Code
-
Access the Extensions Marketplace
-
Search for
Env Shield -
Click Install
[insert image of extension in VS Code marketplace]
You can configure additional files to be processed through VS Code settings:
{
"env-shield.additionalFiles": [
"config/secrets.json",
"settings/credentials.json"
]
}additionalFiles: Array of additional JSON files to monitorsensitiveFiles: Array of files to check for sensitive patternsblurStrength: Customize the blur strength of sensitive content (default: 5px)customPatterns: Array of custom patterns to identify sensitive content
- The extension automatically activates for
.envfiles and configured JSON files - Click the "Secrets Blurred" status bar item to toggle blur effect
- Use the command "Toggle Sensitive Values Blur" from the command palette
This section demonstrates the expected behavior of the extension with the specified settings:
// settings.json
{
"env-shield.additionalFiles": ["additional.json"],
"env-shield.sensitiveFiles": ["example.json"]
}The extension will automatically blur sensitive information in .env files:
The extension will also blur sensitive information in the specified additional JSON files:
Sensitive information in the configured sensitive files will be blurred as well:
The status bar indicator shows the blur status and allows you to toggle the blur effect:
- Blurred Status:
- Visible Status:
// settings.json
{
"env-shield.additionalFiles": ["aditional.json"],
"env-shield.sensitiveFiles": ["example.json"]
}.env files:
Configured aditional .json files:

- Use the status bar indicator to quickly check blur status
- Configure additional file patterns for custom use cases [insert image of status bar indicator]
- Node.js
- Visual Studio Code
- Clone the repository
- Run
npm install - Open in VS Code
- Press F5 to start debugging
If you find this extension helpful, consider buying me a coffee to support its development!
File issues at GitHub Issues




