logo

Using VSCode to edit SOPS yaml

Long time no post – just a quick one on how to use VSCODE with editing YAML

Problem

If you’re reading this, you already know what SOPS is and is frustrated in editing YAML via traditional VIM or command line editor. This is extremely frustrating if you’ll be adding alot of YAML values.

Solution

In your command line, expose the following environment variables


export $EDITOR="code --wait"

And proceed with your SOPS cli.

Enjoy and hope that helps!

Leave a Reply

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.