Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simplydanny/modelica-language-vscode
Extension for Visual Studio Code that adds language support for Modelica
https://github.com/simplydanny/modelica-language-vscode
extension language-pack modelica visual-studio-code
Last synced: 10 days ago
JSON representation
Extension for Visual Studio Code that adds language support for Modelica
- Host: GitHub
- URL: https://github.com/simplydanny/modelica-language-vscode
- Owner: SimplyDanny
- License: mit
- Created: 2017-02-19T17:38:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-22T11:31:03.000Z (about 3 years ago)
- Last Synced: 2024-11-22T05:42:15.982Z (2 months ago)
- Topics: extension, language-pack, modelica, visual-studio-code
- Size: 157 KB
- Stars: 24
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Modelica in Visual Studio Code
This extension adds support for the Modelica and Optimica languages to Visual Studio Code.
## Source
Both grammar and snippets are imported from this [implementation](https://github.com/BorisChumichev/modelicaSublimeTextPackage) in SublimeText.
## Features
### Colorization
![colorization](https://github.com/SimplyDanny/modelica-language-vscode/raw/master/images/colorization.png)
### Snippets
![snippets-editor](https://github.com/SimplyDanny/modelica-language-vscode/raw/master/images/snippets-editor.png)
![snippets-command-palette](https://github.com/SimplyDanny/modelica-language-vscode/raw/master/images/snippets-command-palette.png)
## Usage
### Install the extension in VS Code
* Open the command palette using `Ctrl+Shift+P`.
* Type `ext install Modelica` in the command palette.### Select Modelica as a language
* On the bottom-right corner, click on the *select language mode* button, if you have created a new file it should display *Plain Text*.
* Select *Modelica* or *Optimica* in the list of languages.Alternatively, saving the file with a `.mo` or `.mos` extension will allow VS Code to understand that it is a Modelica file and automatically select the language correctly. The `.mop` extension will be associated with the Optimica language respectively.
Additional extensions can be connected to the languages in any `settings.json` file using the `"files.associations"` setting.### Using snippets
Just start to type and choose a snippet that may be proposed. Alternatively, use `Ctrl+Shift+P` to open the command palette and type `Insert Snippet` to see a list of all possible snippets to choose from.
## Release notes
Click [here](https://github.com/SimplyDanny/modelica-language-vscode/blob/master/CHANGELOG.md) to go to the changelog.