Editors
VSCode
Section titled “VSCode”LikeC4 has official extension for VSCode - open-source and available on GitHub.
The extension provides:
- Validation and error reporting
- Semantic syntax highlighting
- Live Previews (and editing)
- Code completion and navigation
- Resolve references (like
find all references,go to definition.. ) - “Safe” renames
- Hover information
- MCP Server
Extension is universal and can run in the browser.
Try example-cloud-system with:
Standalone Language Server
Section titled “Standalone Language Server”For editors other than VSCode, install the standalone language server package:
npm install -g @likec4/lspThis installs the likec4-lsp binary — a self-contained, fully-bundled language server with zero dependencies.
It auto-detects transport from command-line arguments: --stdio, --node-ipc, --socket=<port>, --pipe=<name>.
Neovim
Section titled “Neovim”LikeC4 has a Neovim plugin for syntax highlighting and LSP integration with code navigation and completion.
The plugin supports:
- Auto start of the LikeC4 language server for files with .c4 extension
- Validation and error reporting
- Semantic syntax highlighting
- Code completion and navigation
- Resolve references (like
find all references,go to definition.. ) - “Safe” renames (do not to forget to write your buffers)
- Hover information
- Live Previews (and editing)
likec4.nvim is available in a separate repository on GitHub - likec4/likec4.nvim. Installation:
{ 'likec4/likec4.nvim', build = 'npm install -g @likec4/lsp'}Use @likec4/lsp with lsp-mode or eglot:
;; eglot(add-to-list 'eglot-server-programs '((likec4-mode) . ("likec4-lsp" "--stdio")))See #2268 for discussion on Emacs support.
LikeC4 has a community Zed extension: zed-likec4.
JetBrains IDEs
Section titled “JetBrains IDEs”LikeC4 has a JetBrains plugin for syntax highlighting and LSP integration with code navigation and completion.
The plugin is available in the JetBrains Marketplace and GitHub - likec4/jetbrains-plugin.