• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

kornilova203/matlab-IntelliJ-plugin: Matlab support for IntelliJ IDEs

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

kornilova203/matlab-IntelliJ-plugin

开源软件地址(OpenSource Url):

https://github.com/kornilova203/matlab-IntelliJ-plugin

开源编程语言(OpenSource Language):

Kotlin 79.8%

开源软件介绍(OpenSource Introduction):

Multi-OS Build

Matlab support for IntelliJ

Matlab syntax highlighting plugin for JetBrains IDEs.

Screenshot of Matlab plugin

https://plugins.jetbrains.com/plugin/10941-matlab-support

Installation

  1. Open Settings | Plugins (Windows) or Preferences | Plugins (MacOS)
  2. Click Browse repositories...
  3. Type Matlab Support in search bar
  4. Click Install

Running matlab files from IDE

  1. Right click on .m file in files tree.

  2. Choose Run 'helloWorld.m'.

  3. If you do it for the first time you'll see an error message telling you that interpreter is not specified.

    1. To fix it open Run | Edit configuration... choose created configuration and specify path to matlab executable.
      Tip: you can specify path to any other program that runs .m files like Octave.
  4. You can save generated run configuration so it will not be removed. To do it open Run | Edit configuration... choose the configuration and click Save icon.

Note: currently Program arguments field in configuration is ignored.

Development

For easier development install Grammar-Kit plugin.

Follow these steps to start working on the plugin:

  1. Clone project and import it to IntelliJ IDEA as Gradle project.
  2. Run/Debug runIde Gradle task.

How to re-generate parser

After you made changes to bnf or flex files you need to generate new lexer/parser code:

  1. Generate Matlab lexers. Open MatlabLexer.flex and click Run JFlex Generator from context menu, do the same for SingleQuoteStringLexer.flex.
  2. Generate Matlab parser. Open Matlab.bnf and run Generate Parser Code from context menu.

If you have any issue with setting up development environment then please create an issue.

The project is written in Kotlin. It's pretty easy to learn. To get started you may quickly look through Basic Syntax and Classes and Inheritance.
Contributions in Java are also welcomed.

To build a jar with Matlab Plugin run buildPlugin Gradle task.

Tips for plugin developers

  1. View PSI Structure. When you start IDEA with runIde Gradle task you may open a matlab file in the IDE and run View PSI Structure of Current File.. action.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
affenwiesel/matlab-formatter-vscode发布时间:2022-08-17
下一篇:
SheffieldML/vargplvm: Bayesian GPLVM in MATLAB and R发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap