With Scala plugin you can reformat the code to make it more good-looking. For example, you may have a code block, with wrong indentation, spacing, etc.
All you have to do is to select it and press Ctrl+Alt+L
The formatting is fully customizable, so you can set the code style you like most.
- Press Ctrl+Alt+S to open the Settings Dialog,
- Expand Code Style and select Scala,
- Perform any adjustments you think necessary