A Visual Studio Code extension for SysML v2.0 with syntax highlighting, formatting, validation, navigation, and interactive diagram visualization.
- Syntax Highlighting - Full support for SysML v2.0 keywords, operators, and constructs
- Standard Library - Built-in OMG standard library (Kernel, Domain, Systems libraries)
- Formatting - Smart indentation and code formatting
- Validation - Real-time syntax and semantic checking with VS Code Problems panel integration
- Navigation - Go to Definition, Find References, Outline, Breadcrumbs, Symbol Search
- Model Explorer - Tree view showing packages and elements across your workspace
- Interactive Diagrams - General View, Interconnection View, Action Flow View, State Transition View, Sequence View, Case View and others with search/pan/zoom/export
- Open VS Code Extensions (Ctrl+Shift+X)
- Search for "SysML v2"
- Click Install
Or install manually from .vsix: Extensions → ⋯ → Install from VSIX
Create .sysml or .kerml files:
package MySystem {
part def Vehicle {
attribute mass : Real;
}
part car : Vehicle;
}
| Command | Description |
|---|---|
SysML: Show Model Visualizer |
Open interactive diagram |
SysML: Validate SysML Model |
Run validation |
SysML: Format SysML Document |
Format current file |
SysML: Export Diagram |
Export as PNG/SVG |
Right-click any folder → "SysML: Visualize Folder" to aggregate and visualize all SysML files.
| Setting | Default | Description |
|---|---|---|
sysml.validation.enabled |
true |
Enable validation |
sysml.validation.realTime |
true |
Real-time validation |
sysml.formatting.indentSize |
4 |
Indentation size |
sysml.formatting.useTabs |
false |
Use tabs |
npm install && npm run compile && npm testMIT