EnvCheck for VS Code
Find the missing setup keys before you start the app.
EnvCheck compares a project's environment template with a local environment file. It flags missing, duplicate, blank, and likely placeholder values in VS Code's Problems panel. It works offline and sends no file contents anywhere.
Install and use
- In VS Code, run Extensions: Install from VSIX… and select the EnvCheck VSIX.
- Open a folder containing a
.env.example file.
- Use EnvCheck: Check Setup in the Command Palette. Select a finding to jump to its line. Missing keys are listed on the template line that declares them.
- Use EnvCheck: Preview Missing Keys to review blank assignments. Confirm to append them to the local file or create it if missing. Fill in the values using your team's approved source and save the file.
In Settings, set EnvCheck: Template or EnvCheck: Target to use a different filename at the workspace root. Multi-root workspaces can configure each folder independently. The explicit commands ask which folder to check.
Try the demo
Open the demo directory from the source archive as a VS Code folder. Its settings select two fictional configuration files. Expect one missing key, one empty value, one placeholder, and one duplicate. Use the preview command to add the missing key, then fill in the blanks and remove the duplicate.
Scope
The extension recognizes standard dotenv assignments, optional export, quoted values, inline comments, and multiline quoted values. It checks each pair of files independently and does not resolve framework-specific precedence or test whether a credential works. Placeholder warnings are heuristic. Values never appear in findings or in the patch preview. Existing assignments are preserved when adding blank keys.
Run npm test to check the parser and insertion behavior. Build with npx @vscode/vsce package.