Yesterday I tried to import come complex c++ code into Leo. Leo's c++ importer didn't do well with templates. A lot of hand tweaking was necessary.
[snip]
The editor component is a Microsoft project called Monaco -Monaco itself can do code folding. Maybe it would be easier to find the code in its code base than in vscode's.
Hah! I forgot vs code's global search command. Searching for "fold" gives too many hits on "folders", but searching for "folding" yields promising results. And that's even before using a word-only or a regex search.
Since the 1.22 release, folding regions can also be computed based on syntax tokens of the editor's configured language. The following languages already provide syntax aware folding: Markdown, HTML, CSS, LESS, SCSS, and JSON.
If you prefer to switch back to indentation-based folding for one (or all) of the languages above, use:
"[html]": { "editor.foldingStrategy": "indentation" },I can't remember if I've mentioned Origami, the old Transputer Development System's (DOS-based) editor. It had a wonderful implementation and key binding for code folding.
Here's someone who re-implemented Origami. Here he talks a bit about how folding was implemented (double-linked n-trees) -
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/c56b761e-5aa8-431d-b5db-067f43606da3n%40googlegroups.com.