This is a Visual Studio Code extension that provides syntax highlighting for .mso files used in EMSO (Environment for Modeling, Simulation and Optimization).
⚠️ Note: This extension is intended only for writing and editing.msoscripts. It does not run simulations. You must open the file in the EMSO environment to execute the model.
- Syntax highlighting for:
- EMSO keywords (
FlowSheet,PARAMETERS,SET,DEVICES, etc.) - Text strings (
"text",'units') - Comments (
# comment) - Numeric constants (
10,3.14)
- EMSO keywords (
- Compatible with any color theme in VSCode.
- Optional integration with the terminal to open EMSO with the current file.
Here's how .mso files appear in VSCode after installing the extension:
To install the extension manually:
- Open the Extensions Panel (Ctrl+Shift+X)
- Click the
...menu (top right) - Choose Install from VSIX...
- Download the
emso-language-support.vsixfile. - Follow the steps shown in the screenshot above.
- Open any
.msofile to enjoy syntax highlighting.
This extension does not run EMSO simulations.
To execute your model, open the .mso file directly in EMSO and run it there.
This extension was developed by Sergio A. Castaño Giraldo to support researchers and engineers who prefer writing EMSO code in a modern editor like VSCode.
MIT
Feedback and contributions are welcome! Feel free to open an issue or submit a pull request.

