scala-style-guide
scala-style-guide copied to clipboard
Is there any editorconf settings for the IDEs?
Most of the settings like indentation, method naming and all can we put together in a editorconf file so that everyone can use that, if possible ?
:+1:
:+1:
I need
I think we should provide this too. Will look into it.
:+1: IntelliJ - was going to do this meself
@pcleary00 if you do create one, please submit a pull request here too. Thanks!
Please share style configs for IntelliJ
@pcleary00 please share style configs
Any update?
👍
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.
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: