Skip to content

Preferences

Every struktJS preference from theia-extension/src/shared/app-preferences-schema.ts. Open them from the Settings tab or, for entries with a Theia setting id, from Theia's own Settings UI (File > Settings, search struktJS). Entries without a Theia id are reachable only through the struktJS Settings tab and menu toggles.

Appearance

Key Label Type / values Default Description Theia setting id
theme Theme one of dark, light, system dark Colour scheme for the standalone web preview. In the Theia IDE use File > Preferences > Color Theme instead. —
accent Accent colour color #7aa2f7 Used for buttons, selection, and highlights in the standalone web preview. In the Theia IDE the accent comes from the Color Theme (focusBorder). —
uiFontSize UI font size number (12–22 px) 16 Base text size for the app's own UI — menus, panes, dialogs, and pages like Welcome and Documentation. Independent of the editor font size below. struktJS.appearance.uiFontSize
workbenchTextSize Workbench text size one of large, standard, small standard Text size of the Theia workbench chrome — explorer, tabs, panel headers, the Messages and Problems views, status bar. Large follows the UI font size above; Small keeps Theia's compact 13px; Standard sits exactly halfway between the two. Has no effect in the standalone web preview, which always follows the UI font size. struktJS.appearance.workbenchTextSize
editorFontSize Editor font size number (10–28 px) 14 Base size of program text. Zoom (Ctrl/⌘ +/−) scales on top of this. A value you set explicitly in Theia's own Editor settings (editor.fontSize) takes precedence. struktJS.appearance.editorFontSize
fontFamily Editor font one of mono, jetbrains, fira, menlo, sans mono Typeface used for program text in the editor. A value you set explicitly in Theia's own Editor settings (editor.fontFamily) takes precedence. struktJS.appearance.editorFont
lineHeight Line height one of 1.3, 1.5, 1.7, 2.0 1.7 Vertical spacing between lines of program text. A value you set explicitly in Theia's own Editor settings (editor.lineHeight) takes precedence. struktJS.appearance.lineHeight
letterSpacing Letter spacing one of 0, 0.3, 0.6 0 Extra horizontal spacing between characters in program text. A value you set explicitly in Theia's own Editor settings (editor.letterSpacing) takes precedence. struktJS.appearance.letterSpacing
boldKeywords Bold keywords boolean false Render concept keywords (if, def, while, …) in bold. struktJS.appearance.boldKeywords
uiDensity Panel density one of comfortable, compact comfortable Row spacing in Problems, Inspector, Outline, and Output panels. Does not affect the program editor itself. struktJS.appearance.uiDensity

Editor

Key Label Type / values Default Description Theia setting id
indentSize Indent width number (8–48 px) 24 Left padding for each indentation level in the editor. A value you set explicitly in Theia's own Editor settings (editor.tabSize) takes precedence. struktJS.editor.indentWidth
maxUndoSteps Undo history depth one of 50, 100, 200, 500 100 Maximum number of undo steps kept in memory. Higher values use more memory. struktJS.editor.maxUndoSteps
defaultZoom Default zoom number (50–200 %) 100 Zoom level applied when the app starts. struktJS.editor.defaultZoom
showBreadcrumbs Show breadcrumbs boolean false Show the path from the program root to the focused node above the editor. struktJS.editor.showBreadcrumbs
showLineNumbers Show line numbers boolean true Show line numbers and fold chevrons in the editor gutter. A value you set explicitly in Theia's own Editor settings (editor.lineNumbers) takes precedence. struktJS.editor.showLineNumbers
rainbowIndents Rainbow indent guides boolean false Color each indentation level with a distinct hue. struktJS.appearance.rainbowIndents
a11yTree Screen reader tree boolean false Expose the program to screen readers as a tree (each node a tree item with its level, position and expanded state) instead of a flat run of cells. Experimental: not yet verified with a screen reader. struktJS.accessibility.exposeTree
errorLens Inline error lens boolean false Show the first error or warning message inline, immediately after the problematic node. struktJS.editor.errorLens
typeSubscripts Inferred types under binders boolean false Show the inferred type as small text beneath variable declarations and parameters. struktJS.editor.typeSubscripts
autoNavToError Jump to first error after run boolean false After running the program, automatically navigate to the first check error. struktJS.editor.autoNavToError
wrapNavigation Wrap sibling navigation boolean true Next/previous sibling navigation wraps around at the first/last child instead of stopping. struktJS.editor.wrapNavigation
spellcheckLocale Spell-check language one of en, off en Language used to spell-check free text in languages that support it (for example Changelog entries). Off disables spell checking. struktJS.editor.spellcheckLocale
autoCenterOnFocus Center node on navigation boolean false Scroll a navigated-to node to the vertical center of the editor instead of just into view. struktJS.editor.autoCenterOnFocus

Editing

Key Label Type / values Default Description Theia setting id
sideTxHints Operator hints at cell edges boolean true Show a small marker beside the focused cell when typing an operator there would wrap it (1 then + gives 1 + _), and list the keys while Alt is held. struktJS.editor.sideTransformHints
liveValues Show live values after declarations boolean false While you edit, run the program in the background (without its output, with a time limit) and show the value of each top-level declaration, dim, after its line. struktJS.editor.liveValues
fadeHints Fade hints once you know them boolean false After you have typed an operator over a value about five times, the small + markers beside the focused cell stop appearing (holding Alt still lists the keys). struktJS.editor.fadeHints
errorTiming Hold back errors while typing boolean false While you type into a node, hold back its error until the caret leaves the node or pauses for about a second, so a half-typed name is not flagged. Warnings and the Problems list are unaffected. struktJS.editor.errorTiming
focusBox Faint box around the node under the caret boolean false Draw a faint dotted box around the node the caret is in (the smallest one around it that is bigger than the cell), so you see what an edit or a selection step will touch. struktJS.editor.focusBox
spaceOpensContinuation Space opens the "what can come next" menu boolean true Pressing Space at the end of a finished value opens a menu of the operators and postfix forms that can follow it. Turn off to keep Space as a plain key there. struktJS.editor.spaceOpensContinuation
ghostText Ghost text instead of the completion menu boolean true In an empty cell, keep the completion menu out of sight until Ctrl+Space and show the one continuation of what you typed greyed after it (Right arrow or Enter accepts). struktJS.editor.ghostText

Behaviour

Key Label Type / values Default Description Theia setting id
confirmDestructive Confirm destructive actions boolean true Ask before clearing the program or resetting to defaults. struktJS.behaviour.confirmDestructive
clearOutputBeforeRun Clear output before each run boolean true Start every run with a clean output log instead of appending. struktJS.behaviour.clearOutputBeforeRun
restoreLastProject Reopen last project on startup boolean true Automatically load the most recently opened project (VS Code / Theia only). struktJS.behaviour.restoreLastProject
gitInitNewProjects Enable version control for new projects boolean true Automatically run "git init" and create an "Initial commit" when creating a new project or saving a sample as a project (VS Code / Theia only). struktJS.behaviour.gitInitNewProjects
confirmClearOutput Confirm before clearing output boolean false Show a confirmation dialog before clearing the output panel. struktJS.behaviour.confirmClearOutput
foldOnOpen Fold all on model open boolean false Automatically fold every top-level block when a project is loaded. struktJS.behaviour.foldOnOpen
autoShowOutputOnRun Show output panel on run boolean true Switch to the Output panel automatically when a program is run. struktJS.behaviour.autoShowOutputOnRun
pythonRuntime Python runtime one of auto, host, pyodide auto Which Python runs your programs. Automatic uses the Python installed on this computer and falls back to the built-in WebAssembly Python (downloaded once, with your permission) when there is none. Choose Built-in to run sandboxed, without access to this computer's files. struktJS.python.runtime
openWalkthroughOnFirstStart Open the getting-started walkthrough on first start boolean false Welcome always opens and features the getting-started walkthrough. Enable this to also open that walkthrough in its own tab the first time the workbench starts. struktJS.welcome.openWalkthroughOnFirstStart
confirmClearBookmarks Confirm clearing all bookmarks boolean true Ask before removing every bookmark at once. struktJS.behaviour.confirmClearBookmarks
verifyOnEdit Re-verify models while editing boolean true After you stop editing a model that has been verified once (Run > Verify Model), re-run the verification in the background so the Explorer badge and the status bar stay current. Turn off if your tests are slow. struktJS.behaviour.verifyOnEdit
largeModelThreshold Large model warning threshold number (0–1000000 nodes) 15000 A model with more nodes than this is not drawn until you agree, because drawing a very large model can freeze the page for many seconds. 0 never asks. struktJS.behaviour.largeModelThreshold
autoOpenReadme Open README.md when opening a project boolean false Open the project's (or sample's) README.md in a preview tab beside the editor whenever you open it. Off by default; you can always open the README yourself from the Explorer. struktJS.behaviour.autoOpenReadme

Advanced

Key Label Type / values Default Description Theia setting id
developerMode Developer mode boolean false Show developer-only tools, such as Tools > Demo. struktJS.advanced.developerMode
typeRuleFailures Report type rule failures one of off, warning, error warning When a language's type rule throws while checking your program, report it as a problem on that node instead of silently treating the node as untyped. Mostly useful to language authors. struktJS.advanced.typeRuleFailures

Collaboration

Key Label Type / values Default Description Theia setting id
collabAllowInsecureCryptoFallback Allow collaboration without a secure connection boolean false Collaboration normally requires HTTPS or localhost (the browser's encryption APIs are unavailable otherwise). Enabling this lets it work over plain HTTP instead — e.g. a LAN IP like http://192.168.x.x — using a slower, pure-JavaScript encryption fallback. This still hides your session content from the relay server, but NOT from anyone who can tamper with this page in transit (e.g. another device on the same network). Only enable this on a network of devices you trust. struktJS.collaboration.allowInsecureCryptoFallback
collabAllowInsecureRelay Allow plain-HTTP relay on a local network boolean false Relay server URLs must normally use https/wss (plain http/ws is only accepted for localhost). Enabling this also accepts plain http/ws to a private-network relay — a 192.168.x.x / 10.x.x.x / 172.16-31.x.x address, a link-local address or a *.local name — for a self-hosted relay on your LAN. Traffic to the relay is then unencrypted on the network (session content stays end-to-end encrypted between peers). An https page cannot reach a plain-http relay at all (browser mixed-content rules). Only enable this on a network you trust. struktJS.collaboration.allowInsecureRelay
collabFollowHostPanes Follow host's tool-panel selection one of auto, always, never auto As a collaboration guest, whether to mirror the host's right/bottom tool-panel selection. "Automatic" follows by default, same as every other Live Model Session presence feature (remote cursors, activity badges) — set this to "Never follow" if host-driven pane switches interrupt your own in-progress work. This choice persists across sessions. struktJS.collaboration.followHostPanes
collabServerUrl Relay server URL text http://localhost:8100/ The relay server Tools > Collaboration > "Share Model Session (Live)..." / "Join Model Session (Live)..." connect through. Defaults to a local relay; point this at your own self-hosted open-collaboration-server if your team runs one. (Theia's separate, stock "Collaboration: Share Workspace..." feature has its own server setting.) struktJS.collaboration.serverUrl
collabSyncTheme Sync theme with host boolean false As a collaboration guest, temporarily switch your dark/light theme to match whatever the current host is using — handy for demos or pairing. Only the dark/light distinction is exchanged, never an exact theme id, so this works even if you and the host have different theme packs installed. Restored to your own theme the moment you leave the session, the acting host changes to someone else, or you turn this back off — never written to your own saved theme preference. Off by default. struktJS.collaboration.syncTheme

Output

Key Label Type / values Default Description Theia setting id
outputTimestamps Show timestamps boolean false Prefix each output line with HH:MM:SS. struktJS.output.timestamps
outputMaxLines Max output lines one of 0, 200, 500, 1000 0 Trim the output log to the most recent N lines. 0 = keep all. struktJS.output.maxLines
autoSaveInterval Auto-save interval one of 0, 30, 60, 300 0 Automatically save the current model at this interval when there are unsaved changes. struktJS.output.autoSaveInterval