elm-plugin
Elm language plugin for IntelliJ IDEA. This repository is no longer maintained due to lack of resources. If you need an Elm language support in IntelliJ - please consider using this plugin instead.
Features
This plugin supports Elm 0.18.0. If you need to have different version supported, see this link.
- Parsing the syntax
- Syntax highlighting and color settings page
- Going to declaration
- Highlighting unresolved references
- Code completion
- Brace matching
- Spellchecking
- Rename refactoring
Formatting is currently not a feature of the plugin, but elm-format
can be used instead. If you don't know how to configure IntelliJ to use elm-format
you can find some information here
Building from sources
- Setup your development environment according to this instruction.
- Clone this repository.
- Open it as a Plugin Project in IntelliJ IDEA (either Community or Ultimate version).
- Make sure you have
Grammar-Kit
andPsiViewer
plugins installed. - Delete the content of
gen
directory if you have previously generated parser code from another version of the BNF file. - Open
src/main/java/org/elmlang/intellijplugin/Elm.flex
file and generate lexer code (*) - Open
src/main/java/org/elmlang/intellijplugin/Elm.bnf
file and generate the parser code - twice, if needed (*) - Open
File -> Project Structure
underProject
set theProjekt SDK
to the (in Step 1) configuredIntelliJ Platform Plugin SDK
, theProject language level
at least to8
and theProject compiler output
toout
- Create a
Plugin
-Run Configuration
(*) either from a context menu or by keyboard shortcut β§βG
Contributing
Please do not contribute to this repository directly - fork it and contribute to your fork instead.