The "Format Google Cloud Yaml Envs" extension for Visual Studio Code allows you to format environment variables obtained from YAML files in Google Cloud services, such as Cloud Run, and parse them into a valid .env file format. This extension simplifies the process of converting YAML-based environment variables into a format commonly used in local development environments.
Usage
Install the "Format Google Cloud Yaml Envs" extension from the Visual Studio Code Marketplace.
Open a YAML file containing the environment variables obtained from a Google Cloud service.
Select the section of the file that contains the environment variables you want to format.
Open the Command Palette using Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS).
Search for the command "Format Google Cloud Yaml Envs" and select it.