Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CKSP ToolsNew to Visual Studio Code? Get it now.
CKSP Tools

CKSP Tools

mvatter

|
153 installs
| (2) | Free
Language support for KSP (Kontakt Script Processor) and cksp, including the cksp compiler.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CKSP Tools (VS Code Extension)

Marketplace Downloads Installs Rating Docs VS Code

Extension Issues  |  Compiler Issues  |  Documentation

The CKSP Tools project aims to bring a modern development environment for Native Instruments’ Kontakt to Visual Studio Code. It combines language support for the Kontakt Script Processor and the cksp dialect with a compiler/transpiler that extends KSP with modern programming concepts. The language support features are configured to automatically work with *.ksp, *.cksp and *.txt files.

Write your script, compile it, and let Kontakt reload it – then read the log, jump from a Kontakt error straight into the line of your original *.cksp source, and repeat. Creator Tools is no longer needed anywhere in that loop.

[!NOTE] I am continuously working on improving this extension, so I would love to hear your feedback and suggestions.

cksp-object

Highlights

  • Kontakt Bridge – CKSP Tools talks to Kontakt's debugging service directly (macOS and Windows), so Kontakt reloads your script automatically when the resource container changes and streams its log into VS Code. No Creator Tools required.
  • Errors where you wrote them – Kontakt/KUI/KScript errors and warnings appear as VS Code diagnostics in the Problems panel, and source maps take you back to the original *.cksp line, not the generated KSP output.
  • CKSP Language Server – when the selected compiler ships one, you get live compiler diagnostics while typing, plus rename, go to definition, references, document highlights, code actions and completion powered by the real compiler front end.
  • Project workflow – initialize a full Kontakt library folder structure, pick main file and additional entry points, and compile all of them with one command.
  • NKI editor & Kontakt Log – open, inspect and launch *.nki instruments from VS Code and read a filterable, clickable Kontakt log inside the editor.

The CKSP Compiler

At the heart of the project is the CKSP compiler. It introduces higher-level language features such as local variables, functions, and data structures, making scripts easier to read, write, and maintain. cksp-object

  • CKSP syntax is a modernized version of KSP with elements from Lua, TypeScript, and Python.
  • Existing KSP scripts are supported – you can compile both *.cksp and *.ksp files.
  • Compilation is fast, even for large projects. The output is a standard *.txt file that Kontakt can load as usual.
  • Export paths can be controlled directly inside code via #pragma directives.

Extension Features

Project Setup & Compiler Integration

  • CKSP: Initialize Kontakt Project creates the complete folder structure of a Native Instruments library, including an .nki whose first script slot is already linked to Samples/Resources/scripts/main.txt.

      ├── Instruments
      │   └── <ProjectName>.nki
      ├── Samples
      │   ├── Resources
      │   │   └── scripts
      │   │       └── main.txt
      │   └── <ProjectName>.nkr
      ├── dev
      └── main.cksp
    

    create-project

  • Compile the current file (Shift+Alt+R) or the designated main file (Shift+Cmd+R / Shift+Ctrl+R).

  • Multiple entry points: star the main file and check additional entry files in Project Settings, then build everything with CKSP: Compile All Entry Points. All entry points are handed to the language server for project-wide analysis.

  • Sidebar integration: browse, download, and manage compiler versions, with auto-update notifications for new compiler releases and automatic cleanup of old versions.

  • Designed for a smooth transition from SublimeKSP, with many familiar features built-in.

Language & Editor Support

  • Syntax highlighting for CKSP and vanilla KSP, including structs, namespaces, type annotations, macros, pragmas and Doxygen-style comment tags.
  • Completion Provider for built-in commands and constants, your own variables, functions, macros, defines, structs and types – array items even show their size. array-completion
  • Path & import completion that suggests one path segment at a time. import-path-completion
  • Resource picture completion suggesting *.png files from the selected resource container. resource-completion
  • .nckp support: performance view files are validated against a JSON schema, and their UI controls become completion items.
  • Signature Help showing function signatures and arguments while typing (with self handled correctly for methods). signature-help
  • Hover Provider for built-in constants, commands, #pragma directives and user-defined functions – the KSP manual inside the editor. hover-provider
  • Go to Definition and Find References for functions, methods, macros, and defines.
  • Document & Workspace Symbols for fast navigation across files.
  • Inlay hints for call arguments, folding for nested blocks and custom //#region / //#endregion sections, and automatic block closing for functions, callbacks, namespaces and const blocks.
  • Large-file safeguards: expensive language features are skipped above a configurable size (cksp.largeFiles.maxLines, cksp.largeFiles.maxSizeKB).

CKSP Language Server

When the selected compiler provides a language server, CKSP Tools starts it automatically and steps back with its built-in providers where the server is more precise:

  • Live compiler diagnostics for open and unsaved files – real type and scope errors while typing, not just syntax highlighting. language-server-diagnostics
  • Rename symbol, go to definition, find references and document highlights across the whole import graph, including structs, methods and namespaces.
  • Code actions for common compiler diagnostics (e.g. adding a missing ref parameter) and document links for import and #pragma paths.
  • Can be switched off entirely with ckspLanguageServer.enabled; CKSP: Restart Language Server restarts it, and it restarts itself after a compiler change.

Kontakt Integration

  • Start and close Kontakt from the sidebar or the NKI editor – per workspace, or with a preferred Kontakt version stored per .nki.
  • Automatic reloading: with the Kontakt Bridge running, Kontakt picks up recompiled resource scripts on its own. Optionally clear the log on every reload (cksp.clearKontaktLogOnHotReload).
  • Kontakt Log Viewer inside VS Code – filter by text, severity, instrument and script, pause the stream, copy cells or the whole table, and Cmd/Ctrl+Click a row to open the matching script at the right line. kontakt-log
  • Diagnostics in the Problems panel for Kontakt errors, warnings and info messages, following the filters currently set in the log view.
  • Jump to CKSP source: with compiler source-map support, messages coming from generated KSP are mapped back to the original *.cksp/*.ksp range.
  • NKI editor: a custom editor for *.nki files showing metadata, Kontakt actions and the assignment of resource script files to script slots – the assignment that powers source navigation and diagnostics.
  • Lua console output shown in a dedicated panel when running Lua scripts with the Lua API.
  • Read-only log socket: the normalized Kontakt log can be exposed through a local, authenticated socket for integrations such as MCP clients (cksp.enableKontaktLogSocket).

Resources

For a full list of features, code examples, and usage instructions, I have put together an Online Documentation. There are public issue repositories for both the compiler and the CKSP Tools extension. There you can report bugs, request features, or ask questions about the compiler and the extension. The compiler repo itself is not yet public, but I intend to do so after the project has matured a bit more.

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