rocqinit for VS Code
Install from the Visual Studio Marketplace, or in VS Code: Extensions, then search for rocqinit.
VSCodium, Cursor and other editors that use Open VSX find it there.
Create Rocq Prover and Coq projects built with Dune from VS Code,
with rocqinit: a starter theory with complete proofs, editor load paths
and optional CI.
Features

New projects from the command palette. rocqinit: New Project asks the same questions as rocqinit, one step at
a time, with Back on every step: name, Rocq 9 or Coq 8.20, template, extras, namespace and git remote. The project
builds with dune build straight away and gets its first commit.
| Template |
|
basic |
Hello.v with a first induction proof |
ds |
verified sorted lists, a stack and a binary search tree |
pl |
an expression language and a verified compiler to a stack machine |
mathcomp |
a Gauss sum in the Mathematical Components style |
equations |
a function defined with Equations, proved by funelim |
Extras: GitLab CI, GitHub Actions, OCaml extraction, and VS Code settings that hide build files and recommend
VsRocq.

Doctor. The rocqinit sidebar checks Rocq, dune, opam and git, and the libraries the mathcomp and equations
templates need. Anything missing has a fix to run in a terminal or copy. The doctor runs when a Rocq project opens and
tells you if something required is missing.

Requirements
rocqinit 0.3 or newer, on your PATH or set in rocqinit.path. The
extension offers to install it with Cargo or from the releases page.
Commands
| Command |
|
| rocqinit: New Project… |
create a project |
| rocqinit: Run Doctor |
check Rocq, dune, opam, git and libraries |
| rocqinit: Install rocqinit… |
get or update the CLI |
| rocqinit: Show Output |
the commands the extension ran |
Settings
| Setting |
Default |
|
rocqinit.path |
|
the rocqinit executable; empty finds it on PATH and in Cargo's bin folder |
rocqinit.doctor.runOnStartup |
true |
run the doctor when a Rocq project opens |
rocqinit.newProject.defaultLocation |
|
folder for new projects; empty asks each time |
rocqinit.newProject.build |
true |
run dune build in new projects |
rocqinit.newProject.initGit |
true |
initialise a git repository with a first commit |
rocqinit.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 rocqinit command you'd run yourself and reads its --json output. The rocqinit output
channel shows each command.
Development
cd editors/vscode
npm ci
npm run check # typecheck, lint, unit tests
npm run package # rocqinit-<version>.vsix
npm run try # build it and install it into your VS Code
Or press F5 with this folder open to run it in an Extension Development Host.
License
MIT