DEV Community

Daniel Shotonwa
Daniel Shotonwa

Posted on

Finally built a vscode extension

I have been thinking of building a vscode tool and finally published one.

It is an extension used for automating the process of adding a line of variable to .env and sample-env file, instead of copying and pasting.

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

Install here: https://marketplace.visualstudio.com/items?itemName=danielshow.autoenv&ssr=false

Check out the repo here:
https://github.com/Danielshow/autoenv

Kindly help install on vscode. it means a lot. Thanks

I will put up an article on how I built it.

Discussion (1)

Collapse
moopet profile image
Ben Sinclair

Oh that's a very neat little idea.