ENV

Adds formatting and syntax highlighting support for env files (.env ) to Visual Studio Code
Features
Syntax highlighting

Folding
The extension will enable folding on file content that are wrapped with the following pattern:
# ... << begin with comment(s)
...
... << folded content
...
<< end with a blank line

Formatting
Use the Format Document command (CTRL+SHIFT+I) from the Command Pallete (CTRL+SHIFT+P) to format the current env file

Custom env file extension
The extension support env files with the following name:
.env
.env.sample
.env.example
To enable support for other env files with specific naming convention/ file extension, use the files.associations settings in Visual Studio Code.
For example, the following settings will enable support for *.env.development and *.env.production files:
"files.associations": {
"*.env.development": "env",
"*.env.production": "env"
}
Acknowledgements
License
This project is licensed under the terms of the MIT license.
| |