Syntax highlighting and language support for the MCDP (Monotone Co-Design Problems) modeling language in Visual Studio Code.
- Syntax highlighting for MCDP files (
.mcdp,.mcdp_template,.mcdp_value,.mcdp_poset,.mcdp_interface,.mcdp_primitivedp) - Dark theme optimized for MCDP
- Language configuration for better editing experience
- Open VS Code
- Press
Ctrl+P/Cmd+P - Type
ext install mcdp-language
Or install directly from the Visual Studio Code Marketplace.
The extension recognizes the following file types:
.mcdp- MCDP models.mcdp_template- MCDP templates.mcdp_value- MCDP values.mcdp_poset- MCDP posets.mcdp_interface- MCDP interfaces.mcdp_primitivedp- MCDP primitive DPs
This extension is licensed under the MIT License.
Note that the YAML files are the original source code. Then, they are converted to JSON.
- The
yqcommand is used to convert YAML to JSON. See Mike Farah's GitHub Repository for installation instructions. - Node.js for VS Code Extension Manager.
- VS Code Extension Manager
vsce. Can be installed simply withnpmpackage manger:
npm install -g @vscode/vsce
This command creates the package:
make package
This command installs it in the local VS Code:
make install
- Edit the YAML files
- Run
make install - Test in VS Code by opening a
.mcdpfile and reloading the window (Ctrl+Shift+P -> Developer: Reload Window)