Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any editorconf settings for the IDEs? #12

Open
shadow-fox opened this issue Jun 15, 2015 · 12 comments
Open

Is there any editorconf settings for the IDEs? #12

shadow-fox opened this issue Jun 15, 2015 · 12 comments

Comments

@shadow-fox
Copy link

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 ?

@mariussoutier
Copy link

👍

1 similar comment
@MarkRBM
Copy link

MarkRBM commented Nov 16, 2015

👍

@jacksu
Copy link

jacksu commented Nov 17, 2015

I need

@rxin
Copy link
Contributor

rxin commented Nov 18, 2015

I think we should provide this too. Will look into it.

@pcleary00
Copy link

👍 IntelliJ - was going to do this meself

@rxin
Copy link
Contributor

rxin commented Mar 9, 2016

@pcleary00 if you do create one, please submit a pull request here too. Thanks!

@tovbinm
Copy link

tovbinm commented Mar 25, 2016

Please share style configs for IntelliJ

@jacksu
Copy link

jacksu commented Apr 17, 2016

@pcleary00 please share style configs

@civitaspo
Copy link

Any update?

@goungoun
Copy link

👍

@pauljamescleary
Copy link

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
Copy link

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:

image

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:

image

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:

image

For Java:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests