Before you start make sure you have:
Installing Atom ENSIME
You can install Atom ENSIME either from the command line or from inside Atom.
From the command line
apm install ensime
- Open Preferences
- Click Install
- Search for ENSIME in the search box
- Click Install
Finally, you need to tell Atom where sbt is installed:
- Open Preferences in Atom
- In Packages, search for ENSIME.
- Click Settings.
- In the sbt Exec box, enter the path to the sbt command.
For example, enter /usr/local/bin/sbt if there’s where sbt is for you.
- Open any folder that contains at least one .ensime
- cmd-shift-P ENSIME: Start
- Then you can use the features above!
Every command in ENSIME can be found using cmd-shift-P and typing “ensime”. Some are context bound and will turn up in a specific state, like “Ensime:lockTypeHover” which will only be available while a type hover tooltip is displayed.
Related Atom Packages
The following are automatically installed by Atom ENSIME:
- language-scala for syntax highlighting.
- hyperclick for code navigation. ENSIME hooks in as provider.
- browser-plus to display ScalaDoc.
- linter for display of errors and warnings.
This can be turned off via a setting if you for personal preference would like to uninstall or disable any of these packages.
These are recommended:
Project manager which is handy to keep track of projects.
A plugin to navigate back to last cursor position when “code surfing” is useful. Something like https://github.com/fcharron/last-cursor-position or https://atom.io/packages/navigation-history
None of which has many downloads though…