Extrabbitcode iLogic Code
Features

Code Editor

A Monaco-based editor for iLogic rules, with IntelliSense, multi-cursor editing, sticky scroll, minimap, and an editing toolbar.

The editor is the main content area. It is built on Monaco (the same engine as VS Code) and is tuned for editing iLogic (VB.NET) rules. Open a rule from the Rules Explorer and it loads into a tab here.

The iLogic Code editor with a rule open

Editing toolbar

Above the editor is a toolbar with the most common actions:

ButtonAction
Delete ruleDeletes the rule the active tab belongs to (with a confirmation)
Toggle line commentComments or uncomments the selected lines
CopyCopies the current selection
PastePastes from the clipboard
Undo / RedoSteps through the edit history
SaveSaves the active rule
Save & RunSaves, then runs the rule through iLogic (see Running Rules)

IntelliSense

As you type, the editor requests completions from Inventor and shows them inline. Suggestions cover iLogic and Inventor API members available to your rule, so you can discover properties and methods without leaving the editor.

IntelliSense completions after typing a member access

You can also trigger suggestions manually at any time by pressing Alt + Space.

Editing comforts

The editor brings the multi-cursor and line tools you expect from a modern code editor, all remappable in Settings → Shortcuts:

  • Multi-cursor: select the next occurrence (Ctrl+D) or all occurrences (Ctrl+F2) of the current word.
  • Line moves: move (Alt+Up / Alt+Down) or duplicate (Alt+Shift+Up / Alt+Shift+Down) the current line.
  • Comment toggling: Ctrl+/ on the selection.
  • Folding: collapse the whole rule (Ctrl+0) or expand it again (Ctrl+J).

Format

Format rule (Ctrl+Shift+L) reindents and tidies the whole rule, fixing spacing and indentation through the same VB engine that powers IntelliSense. Use Format selection (from the right-click menu) to format just the selected lines.

Right-click menu

Right-click in the editor for a context menu with Cut / Copy / Paste, Comment / Uncomment selection, Indent / Unindent, an Outlining submenu (fold / unfold), and Format rule / Format selection. Every command is also remappable in Settings → Shortcuts.

Sticky scroll

With Sticky scroll enabled, the enclosing scope (the current Sub/Function, #Region, or If block) stays pinned to the top of the editor as you scroll, so you always know where you are in a long rule. Toggle it in Settings → Editor.

Sticky scroll pinning the enclosing #Region, Sub and For scopes

Minimap

The minimap is an overview of the whole rule on the right edge, for quick navigation. When Minimap section titles is on, #Region and MARK: comments appear as labelled section headers in the minimap. Both are configurable in Settings → Editor.

Add a ' MARK: <name> comment anywhere in a rule to drop a labelled marker into the minimap, so you can find your place in a long rule at a glance. #Region "<name>" blocks are labelled the same way.

Minimap section headers from MARK: comments and a #Region

Font

The editor font family and size are configurable in Settings → Editor. A curated list of common coding fonts is offered, and the size ranges from 8 to 32 px.

On this page