This extension allows you to add a variable to env file and sample-env file automatically by right clicking on the line and click on Add Line to env.
Features
This extension save you the stress of creating .env file and sample-env file.
To add this line to env file automatically;
const KEY = "MysecretKey";
Right click on the line
Click on Add Line to env
The line will change to:
const KEY = process.env.KEY
The env and sample-env file will also be populated
Extensions settings
This extension requires that autoenv.filename key be added to your VSCODE settings.json file and value should be the sample-env filename, if not privided it will default to sample-env. See example below
"autoenv-filename": "sample-env"
Requirements
None
Known Issues
No issues
Release Notes
1.0.0
Initial release of autoenv
[1.0.1]
Add a new Gif
ALlow extension be compatible with previous versions of vscode