lilim for VS Code
Create and manage cross-platform C++ projects from VS Code with lilim:
CMake presets, Conan 2 or vcpkg, CI for Linux, Windows and macOS, tests, sanitizers and tooling.
Features
New projects from the command palette. lilim: New Project asks the same questions as lilim new, one step
at a time, with Back on every step: the kind of project, package manager, C++ standard, tests, libraries, extras,
CI and license. The project builds straight away.
A view of your project. The lilim sidebar shows dependencies, workspace libraries and apps, the test framework,
extras and CI. Extras and CI targets are checkboxes: tick one and lilim regenerates what it needs.
Library search. lilim: Add Dependency lists lilim's curated libraries and searches ConanCenter or vcpkg as you
type. On Conan projects, pick any version.
Updates. Dependencies with a newer version are marked when a project opens. Update one, or all of them.
Doctor. Like flutter doctor in the Flutter extension, lilim doctor runs when a project opens and tells you
if a required tool is missing. The Doctor view lists every check with a fix for your system.
Sync status. After you edit lilim.toml, or update lilim, the status bar and the Problems panel say when the
project needs a lilim sync, with a quick fix to run it. Files you edited by hand that lilim has changes for are
marked too: see the differences, or take lilim's version (yours is saved as <file>.orig).
Requirements
lilim 1.4 or newer, on your PATH or set in lilim.path. The
extension offers to install it if it's missing.
Commands
| Command |
|
| lilim: New Project… |
create a project |
| lilim: Add Dependency… / Remove Dependency… |
search ConanCenter or vcpkg, add or remove a library |
| lilim: Check for Outdated Dependencies / Update All Dependencies |
newer versions |
| lilim: Add Library to Workspace… / Add App to Workspace… / Remove from Workspace |
workspace members |
| lilim: Change Test Framework… |
doctest, Catch2, GoogleTest or none |
| lilim: Configure Extras… / Configure CI… |
turn extras, CI providers and targets on and off |
| lilim: Set Git Remote… |
record origin; nothing is pushed |
| lilim: Sync Project |
regenerate lilim's files from lilim.toml |
| lilim: Run Doctor |
check compilers and tools |
| lilim: Install lilim… / Update lilim… |
get or update the CLI |
Settings
| Setting |
Default |
|
lilim.path |
|
the lilim executable; empty finds it on PATH and in the install scripts' locations |
lilim.doctor.runOnStartup |
true |
run the doctor when a project opens |
lilim.dependencies.checkOnStartup |
true |
check for newer dependency versions when a project opens, at most hourly |
lilim.sync.checkOnSave |
true |
check whether a sync is needed when a file is saved |
lilim.statusBar.enabled |
true |
show the project in the status bar |
lilim.newProject.defaultLocation |
|
folder for new projects; empty asks each time |
lilim.newProject.initGit |
true |
initialise a git repository in new projects |
lilim.newProject.openAfterCreate |
ask |
open a new project here, in a new window, or add it to the workspace |
How it works
The extension runs the lilim command you'd run yourself and reads its --json output, which lilim keeps stable
across 1.x. Every change goes through lilim, so the project stays exactly as the CLI would leave it, and the
lilim output channel shows each command. It only runs in trusted workspaces.
Development
cd editors/vscode
npm ci
npm run check # typecheck, lint, unit tests
make -C ../.. build # the CLI the integration tests use
npm run test:integration # in a downloaded VS Code
npm run package # lilim-<version>.vsix
npm run try # build it and install it into your VS Code
npm run try finds code, code-insiders, code-oss or codium. Reload the window afterwards. Or press F5 with
this folder open to run it in an Extension Development Host.
License
MIT