Official Doppler ExtensionEdit your secrets where you edit your code, with 2 way sync. Autocomplete suggestions and hover enrichment when using environment variables in your codebase.InstallationYou can install Doppler's extension by going to the VS Code marketplace. Once in VS Code:
Easy SetupNow that the extension has been installed, start the setup process. This will install the Doppler CLI if needed, authenticate, and configure the given workspace folder with a Doppler project and config used for autocomplete suggestions and hover enrichment. WindowsThis extension works fine on Windows! Unfortunately, it does require manually installing the CLI. All Doppler CLI commands are executed inside a spawned If you followed our instructions for installing via Git Bash, then you can update the
You can update the Edit SecretsIn the Doppler sidebar, you will see a list of all your projects. When you click into a project, a list of its enviroments and configs are shown in the tree. Click on a config to edit its secrets. When a config is clicked, a new file tab will open with your secrets in the format of a YAML file. This is a virtual file and is not stored on disk. To repeat, your secrets never touch storage, they only live in memory. When you save the virtual file, the extension sends the changes to Doppler. Conversely, when changes are made in Doppler for a config, the virtual file in VS Code will update to reflect the changes. Autocomplete SuggestionsAs you use environment variables (ex: Hover EnrichmentWhen your cursor hovers over an environment variable (ex: Supported Languages
Testing ReleasesInstalling a release candidate is simple and fast. 1. Download the extensionIn the release, click on 2. Install ExtensionIn VS Code, open up the Marketplace tab. Then click on the 3 horizontal dots icon. Lastly select "Install from VSIX" from the dropdown. Local DevelopmentBuilding the ExtensionFirst, install all dependencies:
Next, run this command:
This will build the extension and then install it in VS Code via the Running TestsNOTE: Tests currently won't run in Windows environments due to spawn issues with vscode-test. Contributions welcome if you're able to get this working! To run the tests, you'll need a Doppler project in your workplace named Alternately, you can run Once the
ContributingIf you want to contribute to this project, you can do so by forking the repository and submitting a pull request. Feel free to open an issue if you find a bug or have a suggestion, but if you want to add support for a new language, please make sure to add a screenshot of the change in action. Also, if you like this extension, please consider giving it a ⭐️ License |