Note: This article assumes basic knowledge of VSCode.
Here's how to start using John Papa's VSCode extension Cloak to hide .env
secrets, especially helpful when you're livestreaming!
- Search 'Cloak' in VSCode extensions and install it.
- Open up a .env file with your secrets in it. It should look something like this:
- Open up your Command Palette and hit 'Cloak: Hide Secrets'
And there you have it! Your secrets are hidden! You can un-hide them by running the 'Cloak: Show Secrets' command.
Note: If you copy/paste, your secret will be visible in the file you pasted it in.
PS- many thanks to @nickytonline who pointed out the usefulness of this extension!
Top comments (2)
Thanks!,
Life got easier.
doesnt work