Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1016 Bytes

setup-autocomplete.md

File metadata and controls

28 lines (22 loc) · 1016 Bytes

Overview

Editing mpdev yaml files can be error-prone. IDEs such as VSCode and Intellij offer YAML auto-complete using JSON Schema files.

VSCode

  1. Install the YAML extension for VSCode. https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml
  2. Follow the instructions to associate YAML files with a JSON schema here. Your settings.json file should be similar to the following:
     yaml.schemas: {
         "https://raw.githubusercontent.com/GoogleCloudPlatform/marketplace-tools/master/jsonschema/mpdev.jsonschema": [
             "*/*.yaml"
           ]
     }

Intellij

Follow the instructions here to add a custom JSON schema.

The URL of the mpdev JSON schema is https://raw.githubusercontent.com/GoogleCloudPlatform/marketplace-tools/master/jsonschema/mpdev.jsonschema