Giter Site home page Giter Site logo

modelica-language-vscode's Introduction

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 in SublimeText.

Features

Colorization

colorization

Snippets

snippets-editor

snippets-command-palette

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 to go to the changelog.

modelica-language-vscode's People

Contributors

lochel avatar simplydanny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

modelica-language-vscode's Issues

MetaModelica support

I would like to extend this package to also support MetaModelica. Is it a good idea to have Modelica and MetaModelica within the same package? Is it possible to add a switch to the language package to select Modelica or MetaModelica? Or should one fork this repository to extend it for MetaModelica support?

Wrong syntax coloring for string with trailing space in function call

Hi, I noticed that syntax coloring is sometimes wrong for strings, e.g if you add a trailing space after foo:

image

Removing space makes it work:

image

But it won't work if you have two words with a space in between:

image


I also noticed that the capitalization itself has some impact, e.g. it works fine with small s after .:

image

But breaks if you make it S:

image

It seems that it starts treating it as a type (blue color) for some reason.

In VS Code, I'm using Dark+ (default dark) theme.

Open VSX Listing: Signing the Publisher Agreement

Thank you for being part of the Open VSX community by adding your extensions to the Open VSX Registry. Please note that the service was recently transferred to the Eclipse Foundation and urgent action on your part is needed so we can continue to list your extensions. To ensure uninterrupted service, please sign the Eclipse Publisher Agreement on or before January 8, 2021. If not signed by that date, your extensions will be delisted and will no longer appear on the site nor be available via the API. If you sign at a later date, your extensions will then be re-activated. The signing process is explained in the Wiki (steps 1 and 2).

Please also note that all extensions MUST have a license in order to be listed.

More details are in these recent blog posts:
https://blogs.eclipse.org/post/brian-king/open-vsx-registry-under-new-management
https://blogs.eclipse.org/post/brian-king/new-era-open-vsx-registry

Today, there’s growing momentum around open source tools and technologies that support Visual Studio (VS) Code extensions. Leading global organizations are adopting these tools and technologies. This momentum has spurred demand for a marketplace without restrictions and limitations. Thanks for joining us on this journey as we continue to build the Open VSX community. We look forward to continued innovation from you in 2021!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.