Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>K FrameworkNew to Visual Studio Code? Get it now.
K Framework

K Framework

RuntimeVerification

|
966 installs
| (6) | Free
Syntax highlighting and LSP support for the K Framework
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

K-vscode

K Framework in VSCode.

The official extension maintained by Runtime Verification Inc. and comunity contributors.

The K Framework is an open source project and you can view the source code here: https://github.com/runtimeverification/k

Features

  • Syntax highlighting for .k files and code blocks inside markdown files

  • Integration with the klsp that provides support for code completion, limited diagnostics, go to definition, find references and selection range. Requires K v5.5.103 or higher.

  • Code completion. Context sensitive: modules, sorts and syntax.
    completion

  • Go to definition inside the workspace: requires, imports, syntax.
    gotoDef

  • Highlight syntax errors in the editor. The K Framework output channel will contain diagnostic messages sent by the Language Server.
    errors

  • Selection range. Increase and decrease the selection depending on the AST. Default keys: Alt+Shift+LRArrows
    selection

  • Note: Some features require VSCode to be open in workspace mode, and have kompiled the definition to be able to access the AST caches. If the location information gets out of sync, you may need to clean and rekompile your definition.

  • Warning: this extension overrides the default extension for Markdown files. To get the old behavior back you will have to manually select Markdown in the bottom right or disable this extension.

Contribute

  • Download this extension from https://github.com/runtimeverification/k-editor-support

  • Import the k-vscode directory in VSCode

  • Type npm install in the Terminal window to fetch the Node.js dependencies.

  • Launch with F5

  • For more details read vsc-extension-quickstart.md

  • Special thanks to Lucian Cumpata and Pumpk1n for their contributions on earlier versions of this extension.

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