Autocomplete
ENV Manager Pro provides IntelliSense completion for environment variable keys when you type process.env. or import.meta.env. in any JavaScript or TypeScript file.
How It Works
When you type process.env. the extension triggers a completion list populated from all the keys found across your workspace's .env* files.
Each completion item shows:
- Key name as the label
- Masked value (
sk-ab••••) as the detail - File name as the documentation (e.g.
.env,.env.local)
Selecting a completion inserts the full key name, e.g. process.env.DATABASE_URL.
Supported Contexts
| Trigger | Language |
|---|---|
process.env. | JavaScript, TypeScript |
import.meta.env. | JavaScript, TypeScript (Vite projects) |
Multi-File Completions
If you have multiple .env files, all keys from all files are included in the completion list. Duplicate keys from different files appear once, with the active file's value shown.
Keeping Completions Fresh
Completions are rebuilt whenever a .env* file changes on disk. No manual refresh needed.
Autocomplete works best when you have a .env file with real keys. If you only have .env.example, the keys from the example file will still appear in completions.