Hover Preview
Hover your mouse over any process.env.KEY or import.meta.env.KEY reference in your source code to see a tooltip showing the variable's current value from your active .env file.
What the Tooltip Shows
ENV Manager
KEY: DATABASE_URL
Value: postgres://localhost/mydb
File: .env
For keys that look like secrets (containing TOKEN, SECRET, KEY, PASS, PWD), the value is partially masked:
Value: sk-ab••••••••••••••••••••••
Fallback Behavior
If the key is not found in the active .env file, the tooltip shows:
ENV Manager
KEY: MISSING_VAR
⚠ Not found in any .env file
This gives you a visual cue without having to switch to the sidebar or run a diagnostic scan.
Multi-File Resolution
The hover provider checks all .env* files in the workspace and shows the value from the most recently active file. If the key exists in multiple files with different values, the active file's value takes priority.