Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>KIP LanguageNew to Visual Studio Code? Get it now.
KIP Language

KIP Language

LDC Labs

| (0) | Free
Language support for KIP (Knowledge Interaction Protocol): syntax highlighting, formatting, diagnostics, and code folding for .kip files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

KIP Language (VS Code Extension)

VS Code extension providing full language support for KIP (Knowledge Interaction Protocol) .kip files.

Features

Syntax Highlighting

TextMate grammar with scopes for:

  • Keywords (FIND, UPSERT, WHERE, CONCEPT, PROPOSITION, …)
  • Compound keywords (SET ATTRIBUTES, ORDER BY, WITH METADATA, …)
  • Variables (?drug), parameters (:limit), system identifiers ($ConceptType)
  • Strings, numbers, booleans, null
  • Built-in functions (COUNT, FILTER, CONTAINS, REGEX, …)
  • Operators (==, !=, &&, ||, <, >, …)
  • Comments (// ...)

Document Formatting

Format on save or via Shift+Alt+F:

  • Consistent 4-space indentation
  • Proper nesting for objects, arrays, and blocks
  • Alphabetical sorting of SET ATTRIBUTES keys
  • Comment preservation with correct placement
  • Quoted/unquoted key style preservation

Real-time Diagnostics

Error squiggles as you type (300ms debounce):

  • Unterminated strings
  • Unclosed / mismatched brackets
  • Unexpected tokens and missing clauses

Code Folding

Fold/unfold blocks:

  • Statement bodies (UPSERT { ... }, WHERE { ... })
  • CONCEPT / PROPOSITION blocks
  • SET ATTRIBUTES / SET PROPOSITIONS blocks
  • NOT / OPTIONAL / UNION clauses
  • Consecutive comment blocks

Bracket Matching & Auto-closing

Automatic matching and closing for {}, (), [], and "".

Requirements

  • VS Code 1.85.0+

Installation

From Source

cd packages/vscode-kip
pnpm install
pnpm build
pnpm package   # produces vscode-kip-0.1.0.vsix

Then install the .vsix:

code --install-extension vscode-kip-0.1.0.vsix

Development

  1. Open the repo root in VS Code
  2. Press F5 to launch the Extension Development Host
  3. Open any .kip file to see syntax highlighting, diagnostics, and formatting

Use pnpm watch for live rebuild during development.

Configuration

The extension works out of the box with no configuration needed. Formatting uses 4-space indentation and sorts attribute keys alphabetically.

KIP Language

KIP is a structured query and mutation language for knowledge graphs. See the KIP Specification for full syntax details.

License

MIT

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