mikestead / vscode-dotenv

DotENV extension for vscode with 1M+ installs
MIT License
105 stars 13 forks source link

Please add configuration for files-extension #3

Closed romanlex closed 6 years ago

romanlex commented 6 years ago

Example I want .env.development or .env.prod But in this plugin extensions is hardcoded

Why you use .env.production (full length word) and .env.deb (short length word)

zackijack commented 6 years ago

You just simply add this to the settings:

"files.associations": {
    ".env.development": "dotenv",
    ".env.prod": "dotenv"
 }
mikestead commented 6 years ago

Thanks @zackyjack, @PapsOu has now added this to the README.

As far as I know you can't use pattern matching for supported file types in vscode extensions (please correct me if i'm wrong).

There are many combinations people seem to use but I've tried to add the common ones I've found supported in other related tools. You can see these here.

If there's any specific ones you feel should be included as also popular then please do open an issue or PR.