Skip to content

Settings reference

View as Markdown
Setting Default Description
oxyaml.path "" Path to a custom oxyaml executable. When empty, the bundled oxyaml binary is used.
oxyaml.trace.server "off" Traces the communication between VS Code and the oxyaml language server.
yaml.yamlVersion "1.2" Default YAML spec version
yaml.trace.server "off" Traces the communication between VSCode and the YAML language service.
yaml.schemas {} Associate schemas to YAML files in the current workspace. The expected value of this configuration option is a string to string map:
• Key: The path or URL of the schema to use
• Value: A glob pattern or list of glob patterns specifying which files the schema should be used on. Prefix a pattern with ! to exclude matching files; at least one positive pattern is required.
yaml.disableSchemaDetection [] Disable schema detection for YAML files matching the configured glob pattern or list of glob patterns. Modelines still apply.
yaml.kubernetesCRDStore.enable true Enable/disable validation of Kubernetes custom resources using schemas from well-known Custom Resource Definitions (CRDs)
yaml.kubernetesCRDStore.url "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main" The base URL for fetching well-known Custom Resource Definition (CRD) schemas
yaml.kubernetesVersion — Kubernetes version used to build the schema URL when yaml.schemas maps files to the Kubernetes keyword
yaml.format.enable true Enable/disable default YAML formatter
yaml.format.singleQuote false Use single quotes instead of double quotes
yaml.format.bracketSpacing true Print spaces between brackets in objects
yaml.format.proseWrap "preserve" Always: wrap prose if it exceeds the print width, Never: never wrap the prose, Preserve: wrap prose as-is
yaml.format.printWidth 80 Specify the line length that the printer will wrap on
yaml.format.trailingComma true Specify if trailing commas should be used in JSON-like segments of the YAML
yaml.validate true Enable/disable validation feature
yaml.hover true Enable/disable hover feature
yaml.hoverAnchor true Enable/disable hover feature for anchors
yaml.completion true Enable/disable completion feature
yaml.customTags [] Custom tags for the parser to use. Supported formats are ”!Tag” for a scalar tag, ”!Tag nodeType” to specify the YAML node type, and ”!Tag nodeType:returnType” to specify both the YAML node type and the schema type the tagged value evaluates to.
yaml.schemaStore.enable true Automatically pull available YAML schemas from JSON Schema Store
yaml.schemaStore.url "https://www.schemastore.org/api/json/catalog.json" URL of schema store catalog to use
yaml.disableAdditionalProperties false Globally set additionalProperties to false for all objects. So if its true, no extra properties are allowed inside yaml.
yaml.disableDefaultProperties false Disable adding not required properties with default values into completion text.
yaml.maxItemsComputed 5000 The maximum number of outline symbols and folding regions computed (limited for performance reasons).
yaml.suggest.parentSkeletonSelectedFirst false If true, the user must select some parent skeleton first before autocompletion starts to suggest the rest of the properties. When yaml object is not empty, autocompletion ignores this setting and returns all properties and skeletons
yaml.style.flowMapping "allow" Forbid flow style mappings
yaml.style.flowSequence "allow" Forbid flow style sequences
yaml.keyOrdering false Enforces alphabetical ordering of keys in mappings when set to true
yaml.extension.recommendations true Suggest additional extensions based on YAML usage.
yaml.hoverSchemaSource true Enable/disable showing the schema source in hover tooltips