Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>oxyaml: Fast YAMLNew to Visual Studio Code? Get it now.
oxyaml: Fast YAML

oxyaml: Fast YAML

Marwan

| (0) | Free
YAML validation, completion, hover and formatting with JSON Schema, Kubernetes and SchemaStore. Same settings as Red Hat YAML, written in Rust: up to 400x faster edits and 15x less memory on large files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

oxyaml for Visual Studio Code

Fast YAML language support powered by a native Rust binary (oxyaml --stdio), with full redhat.vscode-yaml settings and schema parity and no Node.js runtime dependency.

Why oxyaml

oxyaml replaces the Node.js-based yaml-language-server used by redhat.vscode-yaml with a single compiled Rust binary bundled per platform.

  • Instant startup and edits: ~3 ms server startup and ~3 ms edit-to-diagnostics on typical files instead of hundreds of milliseconds.
  • Lower memory footprint: 21.7 MiB peak RSS on a ~500-line Kubernetes file vs 124 MiB for yaml-language-server 2.0.0, and 526.6 MiB vs 1,288 MiB on a ~50,000-line file.
  • No Node.js required: The platform VSIX ships the standalone oxyaml executable.

The tables below summarize the measurements recorded in docs/benchmarks.md (5-session medians on GitHub ubuntu-latest for oxyaml on Dec 3, 2026; single-session baseline on Linux x86-64 with Node.js v24.21.0 for yaml-language-server 2.0.0 on Dec 1, 2026 — see docs/benchmarks.md for methodology and reproduction commands).

Metric oxyaml (Small ~500 lines) yaml-language-server (Small) oxyaml (Big ~50,000 lines) yaml-language-server (Big)
Startup 3.2 ms 443 ms 3.5 ms 460 ms
First open → diagnostics 203.2 ms 1,376 ms 623.3 ms 3,608 ms
Warm open → diagnostics 3.8 ms — 373.6 ms —
Edit → diagnostics 3.1 ms 264 ms 320.2 ms 2,394 ms
Completion 0.8 ms 22 ms 1.5 ms 135 ms
Hover 0.4 ms — 0.4 ms —
Peak RSS 21.7 MiB 124 MiB 526.6 MiB 1,288 MiB

Features

  • YAML 1.1 & 1.2 diagnostics: Syntax errors, custom tags (yaml.customTags), style checks (yaml.style.flowMapping, yaml.style.flowSequence, yaml.keyOrdering), and unused anchor hints.
  • JSON Schema validation: Automatic matching from JSON Schema Store, Kubernetes & CRD catalog support, local/remote schemas via yaml.schemas, # yaml-language-server: $schema=... modelines, and $schema keys.
  • Status bar schema picker: Click the schema item in the status bar (or run YAML: Select schema) to assign schemas and choose schema versions.
  • Ecosystem extension API: Supports schema contributors and json-schema: document content for extensions such as Ansible, Docker Compose, and Helm.
  • Completion, hover, and formatting: Schema-driven keys, values, snippets, schema-source tooltips, anchor/alias hover previews, whole-document formatting, and on-type indentation.
  • Navigation and refactoring: Document outline symbols, folding ranges, selection ranges, clickable links, go to anchor definition, anchor rename, code actions, and schema CodeLens.
  • Check workspace: Run oxyaml: Check workspace (oxyaml.checkWorkspace) to validate every YAML file in your workspace—including unopened files—using oxyaml check --format json and view all diagnostics in the Problems panel.

Migrating from Red Hat YAML

oxyaml is a drop-in replacement for redhat.vscode-yaml:

  1. Keep your settings: All existing yaml.* settings (yaml.schemas, yaml.schemaStore.*, yaml.kubernetesCRDStore.*, yaml.format.*, yaml.customTags, etc.) and # yaml-language-server: $schema=... modelines continue to work unchanged.
  2. Automatic coexistence guard: If redhat.vscode-yaml is enabled, oxyaml does not start a competing language server and offers a Disable for Workspace prompt. Once redhat.vscode-yaml is disabled, oxyaml starts automatically.
  3. Default formatter: If your settings specify "editor.defaultFormatter": "redhat.vscode-yaml" under [yaml], change it to "marwanvx.oxyaml".

Settings

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

Commands

Command Title Description
yaml.select.json.schema YAML: Select schema Pick or switch the JSON Schema (and version) for the active YAML file.
oxyaml.checkWorkspace oxyaml: Check workspace Validate all YAML files in open workspace folders (including unopened files) and publish diagnostics to Problems.
oxyaml.restartServer oxyaml: Restart server Restart the oxyaml language server.
oxyaml.showOutput oxyaml: Show output Open the oxyaml log output channel.
oxyaml.showVersion oxyaml: Show version Print the active oxyaml binary version.

Troubleshooting

  • Using a custom binary (oxyaml.path): Set oxyaml.path in a trusted workspace to point to a local oxyaml executable instead of the bundled binary (ignored in untrusted workspaces for security). Run oxyaml: Show version to confirm which binary is active.
  • Output channel: Run oxyaml: Show output (or open Output → oxyaml in the panel) to inspect startup logs, configuration messages, and errors.
  • LSP trace logging: Set oxyaml.trace.server (or yaml.trace.server) to "messages" or "verbose", then inspect the Output → oxyaml Trace channel to view raw LSP requests, responses, and notifications.

Development and packaging

npm ci
npm run typecheck
npm run lint
npm run bundle
npm run vsce:package -- --target linux-x64 --binary ../../target/release/oxyaml

Integration tests (@vscode/test-electron, run under xvfb-run on headless Linux):

npm test
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft