-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
git clone [email protected]:SidneyBovet/smargn.git
You can find it there: https://www.jetbrains.com/idea/download/
Start IntelliJ (don't import the project yet). Go to File -> Settings (for OSX: IntelliJ IDEA -> Preferences) and then click on Plugins in the new window. Click on "Browse repositories..." and install Scala, SBT and Save Actions plugins.
Restart IntelliJ. Now you can import the project as an SBT project.
Go to File -> Import Settings and select codestyle_formatter.jar. Click Ok twice, IntelliJ will restart. Once it has restarted, go to File -> Settings (for OSX: IntelliJ IDEA -> Preferences), then Editor -> Code style -> Scala. Next to "Manage" select "ScalaCodeStyle". Apply the changes before going to next step.
Go to File -> Settings (for OSX: IntelliJ IDEA -> Preferences) and in the new window Other Settings -> Save Actions. If it is activated you don-t have to do anything else, otherwise activate the plugin and check the box "Reformat code" (and only this one, organize import seems to be a bit buggy somehow and rearrange code triggers and exception and doesn't format nor save). Now whenever you save the files will be formatted.
- If you have an error that looks like "InitializerSomethingSomethingError", then run the command "activator clean run".
- If you want to install a plugin after IntelliJ's installation, then go to File-> Settings -> Browse repositories -> look up for Save Actions -> Install Plugin -> Restart IntelliJ