Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No syntax highlighting for .env.<customNames> #34

Open
harshanirudh opened this issue Jul 13, 2022 · 2 comments
Open

No syntax highlighting for .env.<customNames> #34

harshanirudh opened this issue Jul 13, 2022 · 2 comments

Comments

@harshanirudh
Copy link

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

@tmair
Copy link

tmair commented Aug 3, 2022

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.

@HanKruiger
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants