- Install Lean 4 and VS Code following these instructions.
- Make sure you have git installed.
- Let's say you want to use the
copilot
lean project. cd copilot
.lake exe cache get
.- Use VS Code to open the
copilot
folder (not its subfolder or parent foler).
At that point, you can open the textbook in a side panel in VS Code as follows:
- Type
ctrl-shift-P
(command-shift-P
in macOS). - Type
Lean 4: Docview: Open Docview
in the bar that appears, and then press return. (You can press return to select it as soon as it is highlighted in the menu.)
https://codespaces.new as in https://github.com/leanprover-community/mathematics_in_lean/blob/master/README.md