Environment Variables Manager (envs)
A lightweight VSCode extension that simplifies managing shell environment variables directly in your editor.
Features
- Quick Access: Open shell configuration files with a single command
- Direct Editing: View and modify environment variables in real-time
- Streamlined Workflow: Save or discard changes without leaving VSCode
- Shell Support: Compatible with both Bash and Zsh
Installation
- Open VSCode Extensions view (Ctrl+Shift+X or Cmd+Shift+X)
- Search for "Environment Variables Manager"
- Click Install
Usage
- Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
- Type and select
envs
- Edit your environment variables in the editor
- Save changes with standard VSCode commands (Ctrl+S or Cmd+S)
Supported Files
.bashrc
.zshrc
.bash_profile
.zprofile
Configuration
Customize the extension behavior in your VSCode settings:
{
"envs.defaultShell": "zsh",
"envs.autoReload": true
}
Troubleshooting
If your shell configuration file isn't detected automatically:
- Open VSCode settings
- Search for "envs"
- Set the custom path to your configuration file
License
MIT
| |