Zulip Chat Archive
Stream: lean4
Topic: Reading documentation inside vscode
Ken Sailor (Jun 04 2023 at 16:23):
I'm new to lean and read in the documentation that I can read the documentation inside vscode. Are there any instructions in how to do this? I've got vscode installed on my ubuntu box and lean 4 running fine - I just don't know how to open the documentation inside vscode. Any help?
Mario Carneiro (Jun 04 2023 at 16:27):
where did you read this? It's possible it was copied from another iteration of the docs
Mario Carneiro (Jun 04 2023 at 16:28):
some of the tutorials / books / manuals also have a setup for doing this, usually specific to that particular book
Ken Sailor (Jun 04 2023 at 16:40):
I see. Now I can't find the reference. It seems to me I saw a button in the code snippets I was reading that was supposed to eval the code in lean. If it is not normal thing I can copy and paste. It sounded cool, however, like literate coding taken to the max.
Mario Carneiro (Jun 04 2023 at 16:59):
I'm not doubting that you saw it, but the setup to do so is context-dependent. It generally amounts to cloning a repo recommended by the doc and opening a markdown side-by-side view
Ken Sailor (Jun 04 2023 at 17:24):
Thanks. Clearly more complicated than I had hoped, and no instructions in the document as I remember it (just "if you're reading this inside of vscode you can press the button " or some such.
Ken Sailor (Jun 04 2023 at 18:30):
Actually, I got it finally.
Ctrl-Shift-P and type Lean 4 in the command prompt.
Select from the suggested list "Open Documentation View"
This gives you a choice of the usual texts (like Theorem Proving in Lean)
Choose the text you want, and you can read the book inside of VS Code and click on the Try Me buttons at will.
Last updated: Dec 20 2023 at 11:08 UTC