Architector – Visual PlantUML, C4 & Structurizr Editor
Software architecture diagrams like in a drawing tool. Architector opens .puml,
.plantuml and .pu files as an editable diagram: moving, resizing, renaming, adding and
deleting in the diagram edit the file's text, and typing in the text updates the diagram.
The file stays plain PlantUML, so PlantUML itself still renders it; positions you set by
hand are kept as comments.
Diagrams: class, ER, component, deployment, use case, C4, Structurizr workspaces
(workspace.dsl), activity, workflow, sequence, mind map, screen mock-up (Salt), mapping
and ArchiMate.
In the diagram: drag, resize, inline editing, notes, colours, snapping and alignment
guides, align and distribute, multi-select, minimap, and named perspectives that show
only part of a large diagram.
Features
- One editor, three modes (like IntelliJ's Markdown editor):
.puml files open in the
visual editor, and the three buttons in its title bar switch between text only, text
and diagram and diagram only. The text has PlantUML highlighting and completion;
drag the divider to resize, or fold the text away with the ‹ button on it (the › handle
at the left edge brings it back). A click on an element selects and marks its lines in the
text; moving the cursor in the text selects in the diagram. Each editor remembers its
mode; architector.defaultMode sets the one new editors start in.
- Open in Split View (right-click a file in the Explorer or an editor tab): VS Code's own
text editor on the left, the diagram on the right, for when you want all of VS Code's
editing features.
- Syntax highlighting in VS Code's text editor for
.puml, .plantuml, .pu and
.iuml, with comment toggling, bracket matching and folding. The grammar is generated
from the editor's element kinds, so every kind the diagram knows is coloured.
- Diagram next to the text: in a PlantUML text editor, the button in the title bar
(or
Cmd/Ctrl+K V) opens the visual editor beside it.
- Only the text in VS Code's editor: Reopen as Text in the visual editor's title-bar
menu, or Reopen Editor With….
- Add to Open Diagram: right-click a TypeScript or Java file (in the Explorer, in its
editor or on its tab) and its classes go into the diagram that is open, with fields,
methods, inheritance arrows and a link to the code. Right-click a folder and it becomes a
package with the classes of all its files; subfolders become packages inside it. Classes
that are linked already are not added twice.
- Link to code: right-click a class in the diagram, Link to code…, and pick a class of
the code from a searchable list; the class then follows the code. Right-click a package,
Link to code folder…, and the folder's classes come into it. Linked classes show where
they differ from the code; right-click a class or member, Show in code, to open it.
- Refactor › Rename: right-click a linked class or one of its members, Refactor › Rename
in code and diagrams…. The code is renamed with the language's own rename (the one F2
does: TypeScript built in, Java with Red Hat's Language Support for Java), so every
reference follows; then every diagram of the workspace, the links to the code (a renamed
public Java class moves to its new file) and
model.yaml. A class without a link is
renamed in all diagrams (Rename in all diagrams…).
Renaming a linked class (F2, double-click) or changing only the name in a member line
asks the same: Rename … in the code and all diagrams, or only in this diagram.
- New diagram: File > New File… > PlantUML Diagram, or right-click a folder in the
Explorer, New Diagram and pick the kind: class, ER, component, deployment, use case, C4,
workflow, activity, sequence, mind map, screen mock-up, mapping, ArchiMate.
The file stays an ordinary VS Code document: undo, save, dirty state and other extensions
work as usual. The diagram follows the VS Code colour theme.
License
Architector is free to use, for private and commercial work. It is proprietary software,
not open source. The license terms (LICENSE.md) and the third-party notices
(THIRD-PARTY-NOTICES.md) come with the extension; the Marketplace shows the license
under License.
| |