Member-only story

Give highlight and formatting on your env file in VSCode.

Your env file would be just grayscale. At some point, you might make a mistake you couldn’t recognise.

But the ‘ENV’ VSCode extension can give you a clear sight of this problem.

Search and install ‘ENV’

But if your env file name must be specified

.env
.env.sample
.env.example

In your case, your might have a different name for the env files.

If you have .env.local for your development environment, you have to modify the VSCode setting.

Press Command + , to enter the setting menu.

Find the ‘files: Associations’ setting that look like this screen capture.

I’ve added the last one

Item: *.env.local
Value: env

Now you have it.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Fredric Cliver
Fredric Cliver

Written by Fredric Cliver

13+ years in the digital trenches. I decode complex tech concepts into actionable insights, focusing on AI, Software Engineering, and emerging technologies.

No responses yet

Write a response