Home

Awesome

Motoko plugin for IntelliJ IDEA

Adds support for the Motoko language from Dfinity.

IDE Dev Setup

  1. Install Grammar-Kit from Jetbrains
  2. Right click src/main/java/net/lab0/motoko/Motoko.bnf and click Generate Parser Code
  3. Right click src/main/java/net/lab0/motoko/Motoko.flex and click Run JFlex Generator, select the src/main/gen folder and click Ok.
  4. Mark src/main/gen as Generated Sources Root
  5. Compile with ./gradlew buildPlugin
  6. Start IJ with ./gradlew runIde
  7. Open motoko_samples as a project folder.

Basic parsing and syntax coloring is now available.

UI Example

Status

Toy project. Abandoned. Using the Motoko LSP is a better option.

VS code has an extension for this.

Features

Parses almost all the Motoko grammar from early 2021.

Motoko is the language used by the Internet Computer, a crypto decentralized datacenter project.