You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For IntelliJ, here's a couple of settings that I've manually set for my Databricks-styled Scala projects:
To prevent IntelliJ from vertically-aligning wrapped method parameter lists, uncheck the "Align when multiline" option for "method declaration parameters" in the Scala code style configuration:
To fix comment formatting to use Javadoc-style formats instead of Scaladoc, uncheck the "Use scaladoc indent for leading asterisk" option in the ScalaDoc settings:
For imports: IntelliJ's configuration mechanism can't perfectly capture our import ordering convention (it sometimes gets confused by sorting within certain import groups), but it's possible to get close such that automatic imports don't continually break the code style.
Activity
mariussoutier commentedon Nov 10, 2015
👍
MarkRBM commentedon Nov 16, 2015
👍
jacksu commentedon Nov 17, 2015
I need
rxin commentedon Nov 18, 2015
I think we should provide this too. Will look into it.
pcleary00 commentedon Mar 9, 2016
👍 IntelliJ - was going to do this meself
rxin commentedon Mar 9, 2016
@pcleary00 if you do create one, please submit a pull request here too. Thanks!
tovbinm commentedon Mar 25, 2016
Please share style configs for IntelliJ
jacksu commentedon Apr 17, 2016
@pcleary00 please share style configs
civitaspo commentedon Nov 29, 2017
Any update?
goungoun commentedon Feb 22, 2018
👍
pauljamescleary commentedon Feb 22, 2018
Sorry everyone, have not been updating any status here. Kinda sad but I haven't done anything here. I found scalafmt and kinda just ran with it.
JoshRosen commentedon Feb 22, 2018
For IntelliJ, here's a couple of settings that I've manually set for my Databricks-styled Scala projects:
To prevent IntelliJ from vertically-aligning wrapped method parameter lists, uncheck the "Align when multiline" option for "method declaration parameters" in the Scala code style configuration:
To fix comment formatting to use Javadoc-style formats instead of Scaladoc, uncheck the "Use scaladoc indent for leading asterisk" option in the ScalaDoc settings:
For imports: IntelliJ's configuration mechanism can't perfectly capture our import ordering convention (it sometimes gets confused by sorting within certain import groups), but it's possible to get close such that automatic imports don't continually break the code style.
For Scala, use the following configuration:
For Java: