Install XSMP Modeler in VS Code¶
XSMP Modeler is distributed as a Visual Studio Code extension.
Install from the Marketplace¶
- Open Visual Studio Code.
- Open the Extensions view.
- Search for XSMP Modeler.
- Install the extension published as
ydaveluy.xsmp-modeler.
You can also install it directly from the Visual Studio Marketplace:
Open an XSMP workspace¶
After installation:
- Open an existing XSMP workspace or a folder that will contain XSMP projects.
- Open or create an
xsmp.projectfile. - VS Code should recognize XSMP file types automatically:
xsmp.project.xsmpcat.xsmpcfg.xsmpasb.xsmplnk.xsmpsed
What becomes available in VS Code¶
Once the extension is active, you get:
- syntax highlighting
- validation diagnostics
- content assist
- hover documentation
- formatting
- outline support
- quick fixes
- built-in XSMP commands
The most important commands for daily work are:
Xsmp: Create a new projectXsmp: Generate ProjectXsmp: Generate All Projects
Automatic generation options¶
The extension provides a setting named xsmp.generateOnSave.
- Default:
true - When enabled: VS Code automatically runs Generate Project for the active XSMP document when you save it
This is useful when you want generated artifacts to stay in sync while editing.
The extension also provides a setting named xsmp.generateAllOnStartup.
- Default:
false - When enabled: VS Code automatically runs Generate All Projects after XSMP has loaded the workspace
This is useful when you want generated artifacts to stay in sync each time the workspace opens.
Next step¶
Continue with Create a Project to build your first XSMP workspace.