Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>KtavNew to Visual Studio Code? Get it now.
Ktav

Ktav

ktav-lang

| (0) | Free
Ktav configuration format — syntax highlighting and language support
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ktav for Visual Studio Code

VS Code Marketplace Open VSX

Syntax highlighting and language support for the Ktav configuration format inside Visual Studio Code.

Features

  • Syntax highlighting for .ktav files (keys, scalars, tagged scalars, multiline blocks, compounds, comments)
  • Bracket matching and auto-closing for {}, [], ()
  • Comment toggle with #
  • Auto-indent inside object / array / parenthesised compounds

Powered by ktav-lsp when installed:

  • Diagnostics for parse errors and tag/type mismatches
  • Hover info for tags and scalar types
  • Completion for tag names and known keys

Language server

The extension talks to the ktav-lsp binary over stdio. Install it once with:

cargo install ktav-lsp

Discovery order

When activating, the extension looks for the server in this order:

  1. Explicit setting — ktav.server.path (absolute path).
  2. Bundled binary — <extension>/bin/<platform>-<arch>/ktav-lsp[.exe] (reserved for future prebuilt releases; not bundled today).
  3. PATH — falls back to spawning ktav-lsp and letting the OS resolve it.

If none of the above succeed, an error toast is shown and a Ktav Language Server output channel records the failure.

Settings

Setting Type Default Description
ktav.server.path string "" Absolute path to ktav-lsp. Empty means auto-discovery (see above).
ktav.trace.server "off" | "messages" | "verbose" "off" Traces JSON-RPC traffic to the output channel.

Installation

From the Visual Studio Code Marketplace:

ext install ktav-lang.ktav

Or open the Extensions sidebar (Ctrl+Shift+X / Cmd+Shift+X) and search for Ktav.

The extension is also published to Open VSX for VSCodium and other compatible editors.

Example

# A small Ktav config — gets fully highlighted in VS Code
name: my-service
port: $i 8080
debug: $b true
tags: [ web, api, $s "rest+json" ]
endpoints: {
  health: /healthz
  ready:  /readyz
}

Resources

  • Ktav specification
  • Other implementations and editor integrations
  • Issue tracker

License

MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft