Essentials
Syside Modeler activates when .sysml or .kerml file is open, providing features
that help you write, edit, validate and visualize SysML v2 models.
Learn about:
- Visualization Features – Preview the model in diagram view
 
Warning
Syside Modeler shares some features with Syside Editor. To avoid conflicts, please uninstall Syside Editor before using Syside Modeler.
Example Model: copy this model into your .sysml file to test out the features of
Syside, or use your own model.
package 'Part Tree Example' {
    part def Electrical {
        doc /*
             * Electrical parts have this documentation
             */
    }
    part def Mechanical;
    part Automobile {
        part 'Drive Train' {
            part Battery : Electrical;
            part Motor : Electrical;
        }
        part Chassis {
            part Suspension : Mechanical;
            part Body : Mechanical;
        }
    }
}
Textual Support Features
Semantic Highlighting
Whenever a .sysml or .kerml file is open, Syside language server is active. In
light-theme, highlighted textual notation may look similar to this:
 
SysML v2 keywords – such as package, part or def – are highlighted in
pink. If a part is given a name that is also a reserved keyword in SysML v2, such as
frame, two things will happen:
- The word - framewill be highlighted.
- The editor will show a red underline and highlight, indicating an error, together with an error message. 
Additionally, Syside language server highlights Definitions and Usages in
distinct colors, enhancing the ability to quickly identify various semantic elements.
Warning
Dark (Visual Studio) and Light (Visual Studio) themes do not support semantic
highlighting. To ensure proper highlighting, use a modern theme such as Dark+ or
Light+. You can change the theme using the Preferences: Color Theme command.
More information about themes can be found on VS Code documentation.
Documentation on Hover
Syside language server understands links between SysML v2 elements and uses this to
provide documentation on cursor hover. This is useful for quickly accessing information
about a certain model element without having to necessarily navigate to it. Try it out
by hovering over the word Battery in the example model – a tooltip like this
appears:
 
Syside language server takes the documentation (the doc keyword) from either:
- The focused element, if it has any documentation defined; 
- The first (most specific) explicitly or implicitly specializing type that has documentation. 
If the element or specializing type has multiple documentations, they will be grouped together.
Hover functionality is useful for quickly inspecting how a certain element is defined without needing to navigate to the location of the definition, which could be in an another file entirely! Syside language server takes the whole model into account.
Tip
You can use Markdown formatting in your documentation text and the applied formatting will show up during Hover!
Document Outline
The Outline view provides a quick overview of all elements in your currently opened file. To open it:
- Press Ctrl+Shift+P on Windows/Linux, Command+Shift+P on MacOS to open the Command Palette 
- Type - outlineand select “User View Container: Focus on Outline View”
 
Click any element in the outline to jump directly to its location in the editor. You can collapse the Folder section to give the Outline more space.
Folding
Use folding to hide nested elements and make large models more manageable. Hover next to any element to reveal the fold arrow:
 
Click the arrow to fold/unfold the element. You can also use the Command Palette Ctrl+Shift+P on Windows/Linux, Command+Shift+P on MacOS to find the ‘Toggle Fold’ command and its keyboard shortcut.
Auto Completion
Syside language server provides intelligent code completion for both SysML v2 keywords and your model elements. To try it out:
- Start typing “pack” to see keyword suggestions 
- Press Tab to accept a suggestion 
When importing elements, the editor suggests existing package names and automatically adds the required quotes:
 
Validation
Syside language server continuously validates your model as you type. Try copy-pasting this example after your model into the same file:
package Test {
    import 'Part Tree Example';
}
The editor will show an error because import does not have an explicit visibility as
mandated by SysML v2 2024-09 and newer. Hover over the red underlined text to see the
error message as shown above. To comply with specification, add private before
import. Syside language server once again checks the model for errors automatically
but does not find any this time.
Auto Formatting
Syside language server can automatically format your model to maintain consistent style. To enable automatic formatting:
- Open settings with Ctrl/Cmd+Comma 
- Search for “Editor: Format On Save” and enable it. Alternatively, use the - "editor.formatOnSave": trueconfiguration option.
You can also format selected code by right-clicking and choosing “Format Selection”. The formatter preserves your custom formatting conventions while ensuring consistent style across the model.
 
The formatter supports ignore directives to let you preserve specific formatting for
sections of your models.
An example of such an directive is shown below:
package P {
    part def PartDef;
    // syside-format ignore
    part 'my unformatted AST' : PartDef {
}
}
The directive preserves the formatting of the abstract syntax it is attached to, while maintaining consistent indentation for the rest of the file.
Visualization Features
To visualize your currently open .sysml or .kerml file, you have three options
to do so:
- Keyboard shortcut: Ctrl+Shift+V for Windows/Linux, Command+Shift+V for MacOS 
- Command Palette: Press Ctrl+Shift+P for Windows/Linux, Command+Shift+P for MacOS and search for “Syside Modeler: Visualize current file” 
- UI Button: Click the Syside logo in the top-right corner and select “Visualize current file” 
Here is an example of Modeler in action:
 
Note
The visualization requires manual refresh when the model changes. When refreshing, any customizations (such as element layout or visibility settings) will be reset.
Controls
In the diagram view, you can find many different controls that help you navigate and interact with the model. They are organized into three different panels:
- Tabs (Red): The top-most panel containing tabs “Diagram”, “Full Model”, and “All Objects”. 
- View Tools (Blue): The lower panel below it containing tools such as “Select”, “Zoom”, “Pan”, “Zoom in”, “Zoom out” and “Fit to screen”. 
- Context Tools (Green): The right-side panel containing tools such as “Show descendants”, “Remove element”, and “Go to source”. 
We will now go over each of these panels and functionalities.
Tabs
The top panel provides three different views of your model:
- Diagram - The standard SysML v2 diagram view with full access to Context tools. This is the primary working view. 
- Full Model - Shows the abstract syntax tree, including additional elements like documentation blocks and their relationships. 
- All Objects - A comprehensive table view of all model elements and relationships, including unnamed elements. Primarily used for debugging. 
View Tools
The View Tools panel provides navigation and layout controls for your diagram. Controls are arranged left to right:
 
- Save as image - Export current diagram as an image file 
- Select - Select elements (blue highlight). Multi-select with drag or Ctrl/Command+click 
- Pan - Move diagram view with left mouse button 
- Navigate links - Click connections to jump between elements 
- Marquee zoom - Zoom to area by drawing rectangle 
- Interactive zoom - Zoom in/out with mouse up/down 
- Zoom fit - Adjust view to show entire diagram 
- Overview - Toggle mini-map for navigation in large diagrams 
- Hierarchical Layout - Arrange diagram in tree structure 
- Orthogonal Layout - Arrange diagram in orthogonal structure 
- Global Layout - Auto-arrange entire diagram 
- Incremental Layout - Auto-arrange while preserving relative element positions 
- Search - Find and navigate to diagram elements 
Also, double-clicking on white space inside of an element (outside of the name box) will “drill down” into it. Similarly, double-clicking on the white space outside of the element moves the view back up one level.
Context Tools
The context tools panel provides element-specific operations for diagram manipulation. On MacOS, it appears on the right side of the screen; on Windows and Linux, access it by right-clicking an element.
 
- Load Children as Tree - Display immediate children of selected elements 
- Load All Descendants as Tree - Display all descendants (depends on model complexity, use with caution on large models with 10k+ rows of code) 
- Load Children as Nested Tree - Display immediate children in nested format 
- Load All Descendants as Nested Tree - Display all descendants in nested format (depends on model complexity, use with caution on large models with 10k+ rows of code) 
- Remove Selected - Hide selected elements (preserves descendants) 
- Remove All Descendants - Hide descendants of selected elements 
- Remove All - Clear all elements from the diagram 
- Go To Source Definition - Jump to and highlight element definition in model file 
Different Visualization Modes
Syside Modeler has three different visualization modes:
- Standalone - treats each file as a standalone model. This mode is useful for small models that fit into one file. However, when the model is split into multiple files, this mode might not be able to show some elements correctly and will instead show them as - <placeholder>.
- Folder (this is the default mode) - treats all the SysML files in the current folder (and its subfolders, like you see on the VS Code explorer view) as a single model. This mode fixes the issue of some elements showing up as - <placeholder>. However, this mode still visualizes only a single file, which means that you will not see elements from other files.
- Project (upcoming feature) - will work similarly to the Folder mode, but will allow your project to span multiple folders. This would be useful e.g. if you have many SysML libraries imported into your project that do not necessarily live in the same folder that you have opened in VS Code. The limitation of only being able to visualize a single file will still apply. 
You can change the visualization mode by looking at the bottom of your VS Code window, where you should find a Syside logo with “Mode: Folder” written next to it. Clicking on it will open a quick pick dialog where you can select the desired mode.
 
What’s Next?
You’ve now learned the essential features of Syside Modeler. If you have any questions/suggestions, feel free to visit our Forum. To continue:
- Check out the Configure Modeler section and configure Modeler for your use case 
- Explore Automator to learn about automation and scripting features 
