VS Code extension for previewing SysML v2 and KerML models directly inside the editor. It provides a model browser, a live preview pane, generated diagrams, and CSW-oriented tables and views.
Features
- Open
.sysml,.sysmlv2, and.kermlfiles in a dedicated preview - Show a model browser with collapsible elements and type badges
- Refresh automatically when the model file is saved
- Show requirement text, requirement attributes, and model metadata in the Preview pane
- Render generated diagrams from model directives such as
expose ...; render as ...; - Render CSW-specific tables and diagrams from model annotations
- Jump from previewed elements back to their source declaration
- Navigate between related model elements from the preview
- Rename model elements through the extension command
- Edit SCCE-related table values and write them back to the model file
Installation
From Marketplace
- Open the Extensions view in VS Code.
- Search for
Sysml v2 Preview - CSW support. - Install the extension.
- Reload VS Code if prompted.
From VSIX
- Obtain the file
RaduCioban.sysmlv2-preview-csw1.1.1.vsix. - In VS Code, open the Extensions view.
- Open the
...menu in the top-right corner. - Choose
Install from VSIX.... - Select the VSIX file.
- Reload VS Code if prompted.
Command line alternative:
code --install-extension RaduCioban.sysmlv2-preview-csw1.1.1.vsix
How To Run
- Open a
.sysml,.sysmlv2, or.kermlfile in VS Code. - Start the preview in one of these ways:
- Click the preview icon in the editor title bar.
- Run
SysML: Open Previewfrom the Command Palette. - Use
SysML: Open Previewfrom the editor context menu.
- Select elements in the model browser to inspect them in the Preview pane.
How To Use
Model Browser
- Browse packages, parts, ports, requirements, views, and other model elements
- Expand and collapse nodes to inspect model structure
- Use search to filter visible elements
Preview Pane
- See element details for the selected model element
- View requirement text and requirement attributes
- View properties derived from metadata and stereotypes
- Open generated diagrams and tables for elements and views
Navigation
- Click linked elements to navigate within the model
- Jump from preview content back to the source location in the editor
- Use the rename command on supported model elements
Live Update
- Save the model file and the preview refreshes automatically
- If you install a newer version of the extension, reload the VS Code window once
Commands
SysML: Open PreviewSysML: Rename Element
Notes
- If a newly installed version does not appear immediately, run
Developer: Reload Window. - Reinstalling a newer VSIX replaces the older installed version.