|
|
|
|
@ -96,6 +96,31 @@ It is possible to save them directly inside VS Code: [Creating your own snippets
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
## Live Templates for IntelliJ
|
|
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
[Graphviz download](https://graphviz.gitlab.io/download/)
|
|
|
|
|
[PlantUML Integration](https://plugins.jetbrains.com/plugin/7017-plantuml-integration)
|
|
|
|
|
|
|
|
|
|
### Install
|
|
|
|
|
|
|
|
|
|
1. Download [IntelliJ live template](intellij/c4_live_template.zip).
|
|
|
|
|
2. Select `File | Manage IDE Settings | Import Settings` from the IntelliJ IDEA menu.
|
|
|
|
|
3. Specify the path to the downloaded ZIP file: `c4_live_template.zip`.
|
|
|
|
|
4. In the Import Settings dialog, select the Live templates checkbox and click OK.
|
|
|
|
|
4. Restart IntelliJ.
|
|
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
|
|
* Create new PlantUML file (.puml).
|
|
|
|
|
* Type `c4_` for displaying artifacts templates for C4-PlantUML
|
|
|
|
|
* Live template create correct C4 model artifact with stubbed arguments.
|
|
|
|
|
* E.g. alias, label, type, technology, description
|
|
|
|
|
* Replace stubbed arguments with desired values.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
## Layout Options
|
|
|
|
|
|
|
|
|
|
C4-PlantUML also comes with some layout options to make it easy and reuseable to create nice and useful diagrams:
|
|
|
|
|
|