website/content/en/guides/developer/config-autocompletion.md
{{< requirement >}} This guide assumes you understand basic Vector concepts
{{< /requirement >}}
Vector provides CLI subcommands to perform various tasks apart from running pipelines. This short guide focuses on how to
use the generate-schema subcommand to generate the Vector schema with your Vector binary and how to provide its output to an IDE to
enable autocompletion.
generate-schemaRun the following:
# Optional step: get the Vector version and include it in the file name.
# vector --version
vector generate-schema -o vector-v0.45.0-schema.json
Settings | Languages & Frameworks | Schemas and DTDs | JSON Schema Mappingsvector-v0.45.0-schema.jsonYou can find more details in the JetBrains JSON schema documentation.
Follow the VS Code YAML schema validation guide.
With this setup, the IDE will provide real-time suggestions and reduce visits to the Vector docs.