vscode-dotenv icon indicating copy to clipboard operation
vscode-dotenv copied to clipboard

No syntax highlighting for .env.<customNames>

Open harshanirudh opened this issue 2 years ago • 2 comments

Can anyone let me know if i can get syntax highlighting for custom environment names

harshanirudh avatar Jul 13 '22 17:07 harshanirudh

You can associate custom file naming schemes through the vscode file association settings. See https://github.com/mikestead/vscode-dotenv#associate-files for an example.

tmair avatar Aug 03 '22 12:08 tmair

In particular the setting that you seem to want is this:

"files.associations": {
  ".env.*": "dotenv"
},

HanKruiger avatar Oct 18 '22 13:10 HanKruiger