leanprover/vscode-lean4

VS Code extension for the Lean 4 programming language and theorem prover

310

stars

2,296

commits

TypeScript

primary language

Jul 29, 2026

updated

lean-lang.org/
lean
vscode

README

Lean 4 VS Code Extension

This extension provides VS Code support for the Lean 4 theorem prover and programming language.

Installing Lean 4

After installing this extension, a 'Welcome' page with a setup guide should open automatically. The setup guide provides platform-specific information on the following topics:

  • Books and documentation resources
  • Installing Lean 4
  • Setting up a Lean 4 project
  • Troubleshooting issues

If the setup guide does not open automatically, you can still open it manually by opening an empty file, clicking on the ∀-symbol in the top right and selecting 'Documentation…' > 'Show Setup Guide'.

Setup guide with instructions for how to re-open the setup guide manually

Using this extension

The Lean 4 VS Code extension manual provides a complete and detailed overview over all features provided by this VS Code extension. If you are new to Lean, you may find the first five subsections of the 'Interacting with Lean files' section in the manual to be very helpful.

Developing the Lean 4 VS Code extension

See Development.

Contributors

(top 30 of 71)

gebner

812 commits

mhuisi

428 commits

Vtec234

291 commits

EdAyers

220 commits

leanprover/vscode-lean4

VS Code extension for the Lean 4 programming language and theorem prover

310

stars

2,296

commits

TypeScript

primary language

Jul 29, 2026

updated

lean-lang.org/
lean
vscode

README

Lean 4 VS Code Extension

This extension provides VS Code support for the Lean 4 theorem prover and programming language.

Installing Lean 4

After installing this extension, a 'Welcome' page with a setup guide should open automatically. The setup guide provides platform-specific information on the following topics:

  • Books and documentation resources
  • Installing Lean 4
  • Setting up a Lean 4 project
  • Troubleshooting issues

If the setup guide does not open automatically, you can still open it manually by opening an empty file, clicking on the ∀-symbol in the top right and selecting 'Documentation…' > 'Show Setup Guide'.

Setup guide with instructions for how to re-open the setup guide manually

Using this extension

The Lean 4 VS Code extension manual provides a complete and detailed overview over all features provided by this VS Code extension. If you are new to Lean, you may find the first five subsections of the 'Interacting with Lean files' section in the manual to be very helpful.

Developing the Lean 4 VS Code extension

See Development.

Contributors

(top 30 of 71)

gebner

812 commits

mhuisi

428 commits

Vtec234

291 commits

EdAyers

220 commits

Languages

TypeScript

95.3%

JavaScript

2.0%

CSS

1.5%