SysML v2 VS Code extension

Textual SysML v2 works best when the editor understands the model. A VS Code extension can provide live diagnostics, completion, navigation, semantic highlighting, and model views while engineers edit .sysml and .kerml files.

What editor support should provide

  • Syntax highlighting and semantic tokens for SysML v2 and KerML files.
  • Live diagnostics so parse and model issues appear while editing.
  • Completion, hover, symbols, go to definition, and find references.
  • Model exploration and visual views generated from the textual source.

Spec42 for VS Code

Spec42 ships an open-source SysML v2 / KerML language server and VS Code extension. The same analysis engine is used by the editor and the CLI, which keeps local authoring and automation aligned.

Install the extension from the VS Code Marketplace, then open a workspace with .sysml or .kerml files.

Run Spec42: Open Views from the Command Palette to open the Views panel in the secondary side bar, then choose an authored view. Feature Inspector shows resolved types, inherited features, relationships, and values for the element at your cursor or a selected diagram node. Use the Spec42 sidebar for Examples, Help, and Library search.

Follow the getting-started guide for the bundled timer example and current editor workflow.

Where this fits

Editor support is the daily authoring layer. For team workflows, combine it with CI validation, practical adoption habits from SysML v2 in practice, and the broader SysML v2 resources list.