Download the VS Code extension here

Aut-generating chapter headers

March 20, 2025

The //headings command

Demo

When starting out on a documentation project, it can be difficult to divide your project into chunks that can serve as headings. The “//headings” or “//head” prompt can help in this situation and generate a structure. It is almost always easier to modify a suggestion rather than write something from scratch.

Here an example:


# MkDoc Maker

//use folders/*.*; commands/*.*; prompts/*.*
//head

As before you can include any resources in your prompt, so if you already have some images or other files, include them to give more context. After a run it will generate a headings structure suggestion: