The LangDoc plugin is used for in-source documentation of the C# base language. We use it as the standard @doc documentation is single-lined and we need multi-lined documentation.
Our LangDoc documentation contains descriptions of Structure concepts and other low-level information. The high-level documentation of the project is located in the doc directory of this repository.
- Install the plugin via the JetBrains MPS plugin manager (MarketPlace). Use version 0.3 or higher.
- Choose the model where you want to use the LangDoc documentation and add the LangDoc language into the Used Languages.
- Go to an AST node and use an intention (Alt + Enter) to create a documentation bit.
- The documentation bit can be viewed and edited in the Inspector or you can use
View
>Show Documentation Bits in the Main Editor
to show the documentation bits directly in the editor.
- Go to Settings
- Go to Editor
- Go to Editor hints
- Check Inline Doc Bits
- Hit Control + Space
- Select node
- Add the language you want to use for the AST to Used Languages of the model (even if it is the language you are documenting)
- Create an AST