IDE tour¶
Audience: everyone · ~10 min read · Prerequisites: Screen map
This page is the extended walk through the IDE. Start with the Screen map if you only want to find your way around.
struktJS is an Eclipse Theia IDE, so the layout will be familiar: a menu bar on top, tool windows on the left, right and bottom, the editor in the middle, and a status bar. Everything described here is the same in the browser IDE and the desktop app.
Welcome tab¶
On startup the Welcome tab offers Open Project…, New Project…, Load Sample…, Settings, links to Documentation, the short path Model → check → test → generate and the Keyboard Shortcuts, your Recent Projects, and rotating Tips. It stays open until you close it; Help > Welcome brings it back, and a checkbox hides it on startup.
Empty main area¶
When no tab is open at all — a fresh start with Welcome hidden, or after you close the last tab — the main area shows a start screen with Open Project…, New Project…, Load Sample… and your most recent projects. It is not a tab: it disappears as soon as anything opens, and returns when the last tab closes.
Menus¶
Hover over any menu item, in the menu bar or in a right-click menu, for a moment and a tooltip says in one sentence what it does. (The macOS desktop app draws its menus natively; the same tooltip is set on those items, but the operating system decides when to show it. Not yet verified on a real macOS run.)
| Menu | What is in it |
|---|---|
| File | New / Open / Close Project, Export (JSON, FullForm, Surface), Language Editor, Language Plugins, Add Language Import…, Preferences (Theia's Settings, with the struktJS settings in their own section, Keyboard Shortcuts and Developer Mode) |
| Edit | Undo / Redo, Toggle Comment, Find / Replace in the editor, Cut / Copy / Paste submenus, Selection (Select All, Expand / Shrink, Move or Copy Statement Up / Down), Fold |
| View | Tool Windows (Left / Right / Bottom), Zoom, Appearance (Zen Mode, Presentation Mode), Toggle (read-only, focus dim, line numbers, rainbow indents, error lens, bold keywords, ...), Font Size |
| Run | Execute (Run Program, Run with Debugger, Run and Clear Output, Run Tests; then Open Preview, Run Generator), Generate (model / project, rebuild), Output (clear, save, copy errors) |
| Navigate | Go To, Jump To, Next / Previous, navigation history toggles |
| Tools | Typechecker (next / previous issue, first error, Refresh Editor, Check Entire Project), Bookmarks, Collaboration, Language Editor, Language Plugins, Terminal, Find Unused Concepts |
| Help | Documentation, Welcome, Keyboard Shortcuts…, Online Documentation (if configured), Report Issue on GitHub |
Every command is also in the command palette (F1 or Ctrl/Cmd+Shift+P). The full list with shortcuts is the generated Commands & shortcuts reference. A few that are worth memorising:
| Keys | Command |
|---|---|
| F5 | Run Program (never opens the debugger; Shift+F9 is Run with Debugger) |
| Shift+F9 | Run with Debugger |
| F6 | Run Generator |
| F4 | Open Preview |
| Ctrl/Cmd+K, R, T | Run Tests |
| F8 / Shift+F8 | Next / previous issue |
| F12 | Go to Declaration |
| Ctrl/Cmd+K, N, G | Go to Cell… |
| Ctrl/Cmd+K, E, M | Add Language Import… |
| Ctrl/Cmd+= / - / 0 | Zoom in / out / reset |
Shortcuts for the cell-level editing keys are on Editor basics.
Explorer¶
The left Explorer is a stack of sections: Project, Open Editors, Outline and STRUKTJS.
- Project: the project's languages and the tree of models and their roots, with alternative views (Files, By concept, Structure) via the Next Explorer View command. This is the main way to open a model, add a root, rename, duplicate, move, delete, set imports and generate. See Projects and models and The Explorer and Project pane.
- Outline: the structure of the open model.
- Open Editors: the tabs that are open.
The left side also hosts Extensions (the Open VSX marketplace). Source Control (git, see below) sits on the right.
The editor and its companions¶
The middle area holds the projectional editor (one tab per open root) and, when you ask for them, read-only tabs for generated output and previews. Above the code a breadcrumb shows the path to the focused node. Two panes on the right show the program in other forms:
- Surface: the model as source text (Python syntax for Core). You can edit it and load it back.
- FullForm: the canonical text form of the tree (KDL), also editable and importable.
Hovering a node shows a tooltip with its concept, documentation, type and issues. Its More info button (or Ctrl+I) opens the Inspector.
Inspector¶

The Inspector shows the context of the selected node: its relations and derived facts, such as its qualified name, the declaration a reference points to, where a declaration is used across models, where it was imported from, and its inferred type. It is not a permanent tool window: it opens on demand from the tooltip's More info button or Ctrl+I, and closes with its own close button. Sections appear only when they have something to say.
Problems and checks¶

There is no separate Checks pane. Check, constraint, type and data-flow results go to Theia's Problems panel (View > Tool Windows > Problems) and appear as markers on the nodes. Click a problem to jump to its node. Tools > Typechecker has Next / Previous Issue, Go to First Error / Warning, Refresh Editor and Check Entire Project (a read-only scan of every model).
Language editor and language plugins¶

Tools > Language Editor opens the language workbench on the concept under your cursor (or, if nothing is selected, the language's root concept): the concepts of the active language and everything attached to them (slots, editors, checks, constraints, generators, types). It is how you extend or define a language without leaving the IDE. Tools > Language Plugins manages which bundled language plugins are installed. See Bundled languages for the catalogue and Authoring languages for building your own.
A concept opens on aspect tabs: Structure (head, alias,
flags, slots), Appearance (node cell, inspector cell, notations), Text syntax (the text form in model files), Menus & actions (operator keys, upgrades,
wrapping), Rules (placement, constraints), Running, Presentation (menu presentation), Types (inference and checking rules), Scope & flow (scope and
control flow), Generation (rules and reduction), Intentions, and All, which shows the whole class at once. A tab with a green dot
has declarations, and a small diamond means an error or warning in that aspect. An aspect the concept does not have is not a tab: it is listed in the … menu at the end of the tab bar, and picking it creates it. A concept has no category: whether it is an expression or a statement is the interface it implements (IExpression, IStatement, or one the language defines), and the Explorer groups concepts by that interface.
Alt+PageDown / Alt+PageUp switch to the next / previous tab from anywhere in the concept view (the arrow keys do the same on the tab strip).
The tabs sit in a bordered frame. Its header bar names the concept being edited (or the language, on the Language tab) and holds the open tab's switches: the sub-tabs, and the view switch (Preview / Split / Template, Syntax / Code, Rules / Code). Only the Structure tab shows the concept's declaration (concept while extends BaseConcept implements IStatement); the other tabs have no declaration line, no caption and no tab for the aspect's only declaration. What an aspect is for is the card that shows when you hover or focus its tab. The tab strip runs along the bottom of the frame.
Aspects with several kinds of declaration have a second row of tabs, for example Node cell / Inspector cell /
Notations / Surface under Appearance. Picking an aspect from the … menu inserts a starter declaration. An
More tab appears only when the class has members no other tab claims, so nothing is hidden. Switch tabs with the
mouse or with ←/→ while a tab has focus; the Language Editor remembers the last tab per concept. The tabs only change what
is shown: the concept is still one source file, and Save writes the whole class. Rules are edited in the Language Editor
too: the Checking rules sub-tab of Types lists the checks that apply to the open concept.
The Types tab shows a concept's type rules as a block, not code:
typesystem {
infers number
overloads variadic
(number, number) => number
(string, string) => string
else error "Plus: {got} is not {expected}"
infer computed(node, env, infer) { ... }
}
infers T is a constant result type; overloads lists the accepted signatures, and else error "..." is what is reported when no
signature fits ({got} and {expected} stand for the operand types and the accepted signatures; leave it empty to keep the built-in text, and
pick warning or info instead of error for a softer rule); computed is a rule whose body is code, shown in the code projection inside the
rule with its parameters in scope; walks children with h and rule from helper() are the other two forms. Anything the rule view does not model
is kept exactly as written. Build it with the keys: Enter adds a rule, Ctrl+Space in the empty slot lists the kinds (infers,
overloads, computed, walks, delegate), Enter on "no signatures" builds a signature, ( in its result type adds a parameter with the
caret in it, , adds the next one, and Ctrl+Space in a type cell lists the engine's types, the concept's category and the type names the
language declares. A type cell left empty is written as any. The Rules | Code switch at the top shows the TypeScript instead and back
(Left and Right move between the two); saving without editing never reformats the class. The Appearance tab has the same kind of two-button
switch: Preview is the layout drawn from the cells, Template is the template's TypeScript (Left and Right
move between the two once one has focus).
The Appearance tab shows how a node is drawn as cells: fixed text with a style, a child slot, a list of children with an
optional separator, a line break, an indented block, an optional part. Any other element (a Tooltip, a Section, a Card, a MathML formula) shows as a box:
its tag, its attributes as written, and the cells inside it, which are still cells; a self-closing one (a Table, a Field) is the tag and its
attributes, and a Computed value and a Widget have their own cells. Editing the cells changes only the cells you touched: the rest of that concept's editor keeps the line breaks, indentation and quoting it was written with (a new cell takes the layout of the one before it); leaving them alone
never changes the file.
The Editor tab is a canvas. The drawing is in the middle, the rail on its left, the cell's settings on its right and, under the drawing, the Example node: the node
the canvas draws, which you fill in yourself in a real editor (there are no generated samples and no pick lists). It starts as the concept's default node, every slot an empty
placeholder named after its slot (the Empty, Typical and Everything buttons restart it with nothing, the required slots, or the optional parts too), and is kept in this browser for that language and concept, so it is still there after a reload (it is not written to the language file). The canvas redraws as you commit each edit (Enter or Tab).
Above the drawing a line shows where the selected cell sits (Indent › Slot then); the settings start with Selected (the cell kind, where it is and, for a slot cell, what it accepts),
then the cell's own fields, and end with Used by (the concept and any hints).
Select a cell in the drawing and two round + buttons appear in the gutter to the left of its line (the upper inserts before, the lower after); /, Enter, or simply typing do the same from the keyboard.
The rail lists, under Not shown, the concept's slots that no cell draws yet, and under Cells the kinds of cell you can add (Text, New line, Indent, Brackets, Box, Computed value, Element, Expression); press one to
add it after the selected cell (or at the end), or drag it onto the drawing. Double-click a piece of fixed text to type over it right in the drawing (Enter or leaving the field keeps it, Escape cancels); double-click any other cell to go to its value in the settings.
Drag a cell (press it and move) to put it somewhere else: a blue line shows where it will land, before or after the cell under the pointer and inside whatever container
that cell sits in; Escape cancels. Without a mouse, Alt+Up/Down moves the selected cell among its
neighbours, Alt+Left moves it out of its container and Alt+Right into the container before it.
Beside the + buttons, two small buttons toggle a line break after the selected cell and indent it (or dissolve an indent block); a Hints list under the drawing names
things that are probably not meant (an empty text cell, a style name nothing defines) and selects the cell when pressed.
The view switch is Preview | Split | Template. Split puts the template, the concept's JSX, as a second projectional editor beside the drawing: edit the cells and the template follows; edit the template and the cells and the drawing follow
(text that no longer reads as cells is left alone until it does). Template shows the template alone. The Inspector cell tab of a concept has the same canvas for its inspector projection.
There is no Save button: every edit is written to the concept's .concept.js file about a second later (Ctrl/Cmd+S writes at once), and a line under the editor says where it goes and whether the last edit has landed.
A Diagram, a Widget, and a Table whose columns are plain values are drawn for real; a cell the preview cannot evaluate yet still shows as a dashed named chip.
The Scope & flow tab does the same for scope() and dataflow(): flags such as isTerminator = true or nameSlot = 0,
and the functions the analysis calls, with their bodies as code.
The Running tab shows eval() the same way: a constant, "evaluate this child", or "evaluate every child in order", with
any statements before the result shown as code.
The rule lists (Checking rules, Constraints under Rules, and Intentions) show each rule as its settings (name,
severity, slot, ...) and the function it runs, with the function body as code.
The typing grammar has no tab of its own: a flag word for a boolean slot (<Flag>), a word for an optional slot (<Flag optional>) and wrap delimiters
(<Wrap>, <Brackets>) are elements of the Appearance tab's template, and operator rules (key, arity, priority, associativity) and splittable are the
operator spec (Menus & actions tab) and the ISplittable interface (Declaration card).
The Surface sub-tab shows how the concept reads from and writes to each text grammar: per grammar its settings
(type, operator, ...) and the parse / print functions, with their bodies as code. The Inspector cell sub-tab uses the
same cell view as Node cell.
In a concept you author yourself, the eval box on the Running tab shows a body that is one builder call
(Plus(EvalChild("lhs"), EvalChild("rhs"))) as a tree of calls; any other body stays a code box.
Tabs show only the part you are working on, never the surrounding export class or the method signature: the Types
tab holds the contents of the concept's typesystem(), the Running tab the contents of eval(), drawn flush left.
The parameters of the method are still available in the completion menu. All shows the whole
class with its method headers.
Text fields in the Language Editor complete as you type, and Ctrl+Space opens the list: interface names when adding
an interface, slot types and cardinalities (1, 0..1, 0..n, 1..n), type names in type rules, operator keys, module
names, reserved-word suggestions, host executors. Typing something not in the list is always allowed. Free-text fields
(descriptions, names you are inventing) have no list.
The language-level settings are the first tab, Language. A language is described there by the interfaces it implements:
ISupportsHostExecution (run through a host subprocess, with the executor id), IShowsHoverTooltips, IHasReservedWords, IHasCommonModules, IHasStringQuote and IHasNullLiteral.
Whether the generator output is an HTML document (so Open Preview runs it) and the extension of the generated files are not interfaces: they are the File extension of the language's generate transformation, under Transformations.
The implements row lists them and offers the ones the language doesn't have yet; each implemented interface gets a section
with its behavior. A simple behavior is a card (a word list, a text field); Edit as code shows it as the method body in
the projectional editor, where lang is in scope, so the reserved words can be computed instead of listed.
In the Explorer, the concept filter (shown for languages with more than eight concepts) has a second drop-down, any aspect,
to list only the concepts that have type rules, checks, constraints, data flow, scope, intentions, an inspector cell,
notations, a text surface, operator keys or wrapping. It matches aspects a concept inherits from a base concept as well as
its own, and opening a concept while a filter is on lands on that aspect's tab.
Simple rules are shown as a card instead of code: a constant type or an overload table ((number, number) => number) on the
Types tab, and flags such as isTerminator on Scope & flow. Edit as code shows the underlying code for
any of them; rules with real logic are always code.
Structure opens on Declaration, the concept written as a declaration, and edited like any other
program in the editor: concept if extends ConditionalBranch implements … (with the keywords abstract and rootable in front while they are set), then alias, a short
description and a description, then the properties, children and references sections with one line per slot (name, type or concept, cardinality). Move between cells with the arrow keys and Tab. Ctrl+Space in a type, cardinality or interface cell lists
what the language offers. Enter on a section (or a line) adds a line: it is created in the class once it has a name, and
until then a message under the declaration says what it still needs. Ctrl+Backspace deletes a line; you are asked first,
because other tabs refer to a slot as this.$.name, and Cancel brings it back. abstract and rootable are optional keywords at the start of the first line, drawn only while the property is true. To add one, type its name in an empty name cell and press Space, or press Ctrl+Space on a cell of the first line and pick it under modifiers; the property is then written as true. Backspace on the keyword removes it, which removes the property instead of writing = false. The head and the parent are fixed here. Renaming a slot (edit its name) is a
refactoring: the declaration and the class's own uses of it (this.name, this.$.name, self.name in the editor template) are
rewritten, and the message under the declaration lists any mention it could not rewrite (an object key, a string) so you can
check it in the Code view. Undo (Ctrl+Z) works within one visit to the tab.
The concept's look is one Look chip at the start of the first line: it opens a popover to search icons by name or pick a category (with no search and no category it shows only the icons you used recently), choose a palette colour or type any hex colour, see the contrast of that colour on light and dark themes, and preview the concept as it will be drawn. There is no separate property panel: the alias, descriptions, flags and the look are cells of the declaration itself. A field that is not a plain value is shown greyed out; edit it in the Code view. A colour that is neither a palette name nor a hex colour is refused with a message.
Each slot is one aligned line under a header naming its columns: the slot's name, what it holds (a type for a property, the concept a child holds or a reference points at), its cardinality and its other options. Cardinality is always shown (an empty cell means 1); its arrow, Ctrl+Space or typing opens the choices 1, 0..1, 0..n, 1..n, and any other form such as 2..n can be typed. How a child is drawn, and what Enter does in it (one per line, separated by a comma, the body of a statement), is set on the Editor tab, on the cell that draws it.
A Check: line under the declaration points out a slot the class refers to but nothing declares (for example
self.numeratr in an editor template), a slot type or interface that names nothing the language knows, and an interface the
concept implements without a slot that interface requires, so a typo shows up before it fails at runtime.
Anything the view cannot edit (a value that is not a plain literal, a slot with a custom declaration or extra options) is listed
under it as "Not editable here"; switch to Code for the class text. Behind the view the concept is still one source
file: every change is written to the class as you make it, and Save writes the file.
On the Editor tab, under the cells, a Preview draws a sample node through the cells you are editing, so you see
the layout the concept will have; it redraws as you edit. The sample menu above it chooses what is drawn: the required
slots filled, the default node, everything present (optional parts, lists of three), or a bare node with empty slots, which
show as dashed ghosts named after the slot they stand for (cond, then, else). Click a piece of the preview to select the cell that drew it (it is outlined, and its row in the outline is selected), or
move through the cells with the keyboard. Double-click a piece, press F2 on the selected cell, or use Edit value to go
straight to that cell's main value in the Inspector (a text cell's text, a slot cell's slot, a box's tag), already
selected for typing; the change is written as you commit it. The toolbar above the preview edits the selected cell: Insert before and
Insert after (a text, a line break, an indent, or a slot of the concept the layout does not show yet), Delete,
Move up / Move down, and Wrap in indent. The right-click menu of a slot cell (Child cond) also has Make optional…: it asks whether the cell should be hidden while the slot is empty or draw the slot's prompt instead, and wraps the cell in an Optional cell for that slot (the shape the shipped editors use for else). A refused action says why next to the toolbar. Beside the drawing, a collapsible Outline lists the cells as a tree
(Text "if ", Child cond, Optional else, ...), nested through indents, optional parts and boxes. It is the keyboard way
round the cells: Up/Down/Home/End move, Right opens a container and enters it, Left closes it or goes to the
parent, Alt+Up/Down move the cell, Delete deletes it, and Enter takes you to the cell in the editor. Its selection is
the same one the preview and the toolbar use.
In the Inspector (the same Inspector as for the nodes of a program; it stays open while the Language Editor is the current tab, and the aspect shows a Show Inspector button when you have closed it), headed with the selected cell's kind and where it sits, or Nothing selected, the selected cell's other properties are controls instead of code: a text's style
and wrap characters, a slot picked from the concept's own slots, a child's style, a list's separator (text and style),
"one per line" and the text shown when empty, and an optional part's "show while empty". The settings are a property grid: the
cell's main value in a row at the top, then Appearance, Typing and Layout bands (click a band's heading to fold it;
the rarely used settings start folded under More), and the line at the bottom describes the setting you are on. Drag the line
between the two columns to resize them, or focus it and press the left and right arrow keys. A value is written to the cell as soon
as you change it. A
computed value is drawn when the concept provides it; a cell the preview cannot draw (a widget, a raw element, an expression
it does not recognise) shows as a dashed chip that says what it is (<Table />, widget kobalteSwitch, {this.x + 1}).
The common commaSep(self.items) helper is drawn as the list it is.
Concepts you create yourself with Add new concept have the same tabs; there each tab holds the form controls for that
aspect (for example the Generation tab holds the reduce and weave boxes). Check, constraint and type-rule bodies, and the raw-JS eval, open as a structure editor rather than a plain text box;
the stored rule is still the same JavaScript text.
Visualize… (at the bottom of the concept list) draws the language as a diagram: one box per concept, with
inheritance (extends, and dashed implements) and containment (a slot whose kind is another concept, labelled with
the slot name and cardinality such as members [0..n]). Checkboxes switch inheritance, containment, cardinalities and
role names on and off. When a concept is selected, Only
Tool windows¶
All under View > Tool Windows.
| Position | Window | What it does |
|---|---|---|
| Right | Debugger | Pause / Step / Continue / Stop, breakpoint list, variable table |
| Right | Type Trace | How the type of the selected node was inferred |
| Right | Surface, FullForm | The model as text |
| Right | AI Chat | The AI assistant; see AI features |
| Bottom | Problems | Check, constraint and type results |
| Bottom | Messages | Program output and system messages (output and messages are one merged panel) |
| Bottom | Console | The Model Console |
| Bottom | Find Usages | Results of Find Usages (Alt+F) |
| Bottom | Tests | Runs the model's test suites |
| Bottom | Terminal | A shell on the machine running the IDE |
| Left | Explorer, Project, Extensions | See above |
| Right | Source Control | See below |
The Tests window runs the TestSuite constructs found in the open document (the Test Language), shows
pass/fail per assertion with click-to-jump, and can export a JUnit XML report. Run > Execute > Run Tests
(Ctrl/Cmd+K, R, T) starts it.
The Source Control window drives git: initialise a repository, stage and unstage, discard, commit and amend, push / pull / fetch, switch or create branches, merge, stash and pop, and browse history with revert / reset / reword. Diffs of model files compare the parsed tree rather than text; see Running, debugging and generating.
Status bar¶
Left and right items appear and disappear with context. The editor contributes the cursor position
(Ln/Col), node statistics (node count, empty slots, depth), the issue count (click for problems), zoom,
run count and last run time, undo depth, the autosave time, the selection size, and flags for Zen Mode and
Focus Dim. A Read-Only Mode banner appears when the document is read-only, a Collaborate item on the left
is shown whenever a project is open (during a live session it shows the room, the participant count and your role,
and clicking it opens the session actions), and the right edge shows the build version and commit.
Settings and keybindings¶
struktJS has no settings page of its own in the IDE; it uses Theia's:
- File > Preferences > Settings (Ctrl/Cmd+,) is Theia's settings editor. struktJS's preferences appear there under their own top-level struktJS category (sections Appearance, Editor, Behaviour, Output, Collaboration, Advanced). struktJS Settings… (Command Palette) opens it already searched for them.
- File > Preferences > Keyboard Shortcuts is Theia's keyboard shortcuts editor. Every struktJS command is listed (search “struktJS” or the command name); change a key there and the editor follows it.
- Tools > Language Plugins manages language plugin folders.
The complete list is generated in Preferences. Developer Mode (File
Preferences > Toggle Developer Mode; no default shortcut) is a single on/off switch that reveals the Tools > Demo submenu, a showcase of the IDE's progress notification. It does not enable debugging, logging or any other feature, so you can leave it off unless you work on struktJS itself.
Layout tricks¶
- Zen Mode and Presentation Mode (View > Appearance) hide chrome and enlarge the editor.
- View > Toggle > Focus Dim dims everything except the focused construct.
- The Language Editor and generated-output tabs open in the main area and can be split beside the editor.
- Panels are standard Theia: drag to rearrange, double-click a tab to maximise.