Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ununhexium/idea-motoko-plugin
IntelliJ IDEA Motoko support
https://github.com/ununhexium/idea-motoko-plugin
Last synced: 3 months ago
JSON representation
IntelliJ IDEA Motoko support
- Host: GitHub
- URL: https://github.com/ununhexium/idea-motoko-plugin
- Owner: ununhexium
- Created: 2021-05-15T08:35:14.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-05T19:13:24.000Z (over 1 year ago)
- Last Synced: 2024-04-19T01:32:42.318Z (7 months ago)
- Language: Lex
- Size: 384 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-icp - IntelliJ IDEA Motoko support
- awesome-motoko - IntelliJ IDEA Motoko support - Adds support for the Motoko language from Dfinity. (Development tools / IDEs)
README
# Motoko plugin for IntelliJ IDEA
Adds support for the Motoko language from Dfinity.
## IDE Dev Setup
1. Install Grammar-Kit from Jetbrains
1. Right click `src/main/java/net/lab0/motoko/Motoko.bnf` and click `Generate Parser Code`
1. Right click `src/main/java/net/lab0/motoko/Motoko.flex` and click `Run JFlex Generator`, select the `src/main/gen`
folder and click `Ok`.
1. Mark `src/main/gen` as Generated Sources Root
1. Compile with `./gradlew buildPlugin`
1. Start IJ with `./gradlew runIde`
1. Open `motoko_samples` as a project folder.Basic parsing and syntax coloring is now available.
![UI Example](static/motoko-idea-plugin-sample-dark2.png)
## Status
Toy project. Abandoned. Using the Motoko LSP is a better option.
VS code has [an extension](https://marketplace.visualstudio.com/items?itemName=dfinity-foundation.vscode-motoko) for this.
## Features
Parses almost all the Motoko grammar from early 2021.
Motoko is the language used by the [Internet Computer](https://dfinity.org/), a crypto decentralized datacenter project.