Env Protector
🤔 Why this extension?
Most similar extensions hide environment files only after they are opened, which means sensitive information is briefly visible - even if for a short moment. This approach isn't ideal for streamers or anyone concerned about accidentally exposing sensitive data, especially since the toggle feature in other extensions isn't very user-friendly.
This extension takes a different approach: it asks you how you want to open the file before it's even opened, and operates according to your choice. This proactive protection ensures that sensitive information is never accidentally exposed during live streams or screen sharing.
🚀 Features
- 🔒 Toggle Visibility of Environment Files: Easily toggle the visibility of environment files in the sidebar. This command modifies your workspace settings by adding
"**/.env*": true
to thefiles.exclude
section in yoursettings.json
.
- 🛑 Confirmation Prompt Before Opening: Prevent accidental exposure of sensitive data by receiving a confirmation prompt before opening an
.env
file. This safeguard adds an extra layer of security when handling critical environment variables.
- 🤐 Mask Sensitive Data: Automatically mask sensitive environment variables when viewing
.env
files. Variable values are replaced with asterisks, allowing you to review the structure of the file without compromising the actual data.
- ➕ Add Environment Value Without Opening: Insert new environment variables directly from the command palette without needing to open the
.env
file. This feature minimizes exposure risks while making it easy to update your environment. - ✍️ Edit Environment Value Without Opening: Quickly edit an existing environment variable from your enviroment files without exposing their contents in the editor.
- ➖ Remove Environment Value Without Opening: Easily remove environment variables from your environment files, again without exposing their contents in the editor.