- Clone this project;
- Go to root of project and start sbt;
- Run task
intellij/updateIdea
from the sbt console; - Run task
intellij/compile
from the sbt console; - Import this project as an sbt project in IntelliJ;
- Select
Build
/Build Project
;
- Right click on top of
intellij-scalafmt.iml
insideintellij-scalafmt
folder; - Select
Import module
; - Be sure the
unmanaged-jars
dependency in theintellij
module is set toprovided
insideProject structure
/Project settings
/Modules
/Dependencies
(btw, settingprovided
inside sbt file gives error); Without this setting, the generated zip file will be >100mb instead of ~20mb. - Right click on top of
intellij-scalafmt
plugin module and selectPrepare Plugin Module 'intellij-scalafmt' for deployment
;
If everything went smoothly, you should have a intellij-scalafmt/intellij-scalafmt.zip
file
of size ~20mb. You can install this plugin in your IntelliJ installation using
Settings
> Plugins
> Install plugin from disk...
and select the generated zip file.
(untested). Follow these instructions: https://github.com/rikvdkleij/intellij-haskell#how-to-rundebug-plugin-inside-intellij