We have a convention to write
import akka.actor.{ Actor, Props }
instead of
import akk.actor.{Actor, Props}
like Intellij formatting function is doing now. But i didn't find such an option in code style settings, are there any ways to change this bahaviour?
In the editor, select a code fragment you want to reformat. Before reformatting, you can take a look at the code style settings that are applied to the selected code: press Alt+Enter and click Adjust code style settings. From the main menu, select Code | Reformat Code or press Ctrl+Alt+L .
Rearrange code Press Ctrl+Alt+S to open the IDE settings and select Editor | Code Style. In the editor, select the code entries you want to rearrange and from the main menu, select Code | Rearrange Code.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Code Style. and select Import Scheme. Then select the necessary format. In the dialog that opens, select the file with the settings and click Open.
I just created an issue for this, I hope it will be implemented soon, it's simple: http://youtrack.jetbrains.com/issue/SCL-5471
Preferences > Code style > Scala > Spaces > ☑ Import braces
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With