Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>clice vscodeNew to Visual Studio Code? Get it now.
clice vscode

clice vscode

clice-io

|
1,784 installs
| (6) | Free
C, C++ and CUDA language support by clice: template-aware completion, compilation contexts for headers, build configurations, and C++20 modules
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

clice

C/C++ language support powered by clice, a language server written in modern C++ on LLVM/Clang and redesigned from the ground up:

  • Crash-proof: compiles run in isolated worker processes; a compile that crashes on half-typed code costs one worker, not the server.

    crash-vs-clangd

  • C++20 modules: built on demand from your compilation database, whatever the build system, with completion, highlighting, navigation and hover; PCHs and PCMs are cached on disk across sessions.

    modules-vs-clangd

  • Compilation contexts: non-self-contained headers work out of the box; switch the file a header compiles in, the command a source compiles with, or the build configuration.

    contexts-vs-clangd

  • Templates: completion and navigation on dependent names inside generic code; go to implementation on a dependent call lists what each instantiation calls.

    templates

    implementations

  • Out of the box: a compile_commands.json is all most projects need; clice asks each compiler for its own settings, nvcc, MSYS2, Cygwin and zig cc included.

Getting started

  1. Install this extension — the clice server for your platform is bundled, no download or extra setup needed. Cursor, VSCodium, Windsurf and other VS Code forks install it from Open VSX.
  2. Open a C++ project with a compilation database. For CMake: cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON. clice loads every compile_commands.json in the project root and its immediate subdirectories (e.g. build/).

See the documentation for configuration via clice.toml and the full feature guide.

Release channels

Stable versions use even minor numbers; daily pre-releases built from main use odd ones. Use Switch to Pre-Release Version on the extension page to follow the pre-release channel. Per-commit builds and standalone server downloads live on the GitHub releases and CI pages.

Settings

Setting Default Description
clice.enable true Whether clice runs in this window; false in a workspace's settings leaves it to another C/C++ extension.
clice.executable (bundled) Path to a clice binary to use instead of the bundled one.
clice.mode pipe Server transport; socket connects to an external server (debugging).
clice.host 127.0.0.1 Host for socket mode.
clice.port 50051 Port for socket mode.
clice.serverEnv {} Environment of the server and the compilers it asks, on top of VS Code's; ${env:NAME} names VS Code's variables. A Cygwin or MSYS2 compiler needs its runtime's bin on PATH.
clice.trace.server off Log LSP traffic to the clice (LSP trace) output channel.
clice.initializationOptions {} Configuration in the shape of clice.toml, taking the place of the same settings in the project's file.
clice.inactiveRegions.opacity 0.45 Opacity of preprocessor branches not taken; 1 leaves them as they are.

Changing a server setting offers to restart the server in place — no window reload is needed; saving clice.toml or .clice/clice.toml restarts it on its own, as clice asks (not when it connects to a server over a socket). With Even Better TOML installed, both configuration files are completed and checked against clice's schema.

Commands on a file

The context menu of a C or C++ editor holds clice's commands, below Go to Definition and its kin:

  • Switch Header and Source (Module Interface and Implementation), also Alt+O, opens the file's counterpart;
  • Switch Compilation Context, when the file has more than one; the Explorer's Compilation Contexts view lists them all;
  • Switch Build Configuration, when the rules in clice.toml declare any; it restarts the server under the one picked;
  • Show Compile Command opens the command clice compiles the file with, and where it comes from: an entry of a compilation database, the command of a source including the header, a rule's default_command, the command of a unit nearby, or clice's own.

A compile that runs long shows its progress in the status bar: the file and what it waits on (its modules, its preamble, the parse). What needs fixing in the setup, such as a workspace without a compilation database, shows as a notification.

Refactorings

clice's refactorings are behind the lightbulb, Ctrl+. and Refactor... in the editor's context menu. Each also has a command in the Command Palette ("clice: Define Out of Line", "clice: Add Missing Enum Cases to Switch", ...) that a key can be bound to; the code action guide lists them.

Conflicting extensions

Other C/C++ language extensions running next to clice duplicate completion and diagnostics. Once clice is up, it detects the Microsoft C/C++ (cpptools), clangd and ccls extensions and offers to turn their language features off in the workspace's settings (the user's in a window without a folder) and reload the window — cpptools keeps its debugger, only IntelliSense is disabled. A warning dismissed is not repeated in that window.

To leave a workspace to another extension instead, set clice.enable to false in its settings: clice starts no server there, and its commands say it is disabled. false in the user settings turns clice off in every workspace that does not set it back to true. The change applies at once. One server serves the whole window, so a multi-root workspace takes the setting from its .code-workspace file.

Troubleshooting

Server logs live in the clice output channel, which also prints the on-disk log directory at startup (Session log directory: — by default under <workspace>/.clice/logs/). If the server crashes, please attach the newest log from there to a GitHub issue — releases ship symbol packages that let us reconstruct the exact stack.

For protocol-level debugging, set clice.trace.server to verbose: every LSP message then appears in the clice (LSP trace) output channel.

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