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


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.



Fredric Cliver

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧