Skip to content

Is there any editorconf settings for the IDEs? #12

Open
@shadow-fox

Description

@shadow-fox

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 ?

Activity

mariussoutier

mariussoutier commented on Nov 10, 2015

@mariussoutier

👍

MarkRBM

MarkRBM commented on Nov 16, 2015

@MarkRBM

👍

jacksu

jacksu commented on Nov 17, 2015

@jacksu

I need

rxin

rxin commented on Nov 18, 2015

@rxin
Contributor

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

pcleary00

pcleary00 commented on Mar 9, 2016

@pcleary00

👍 IntelliJ - was going to do this meself

rxin

rxin commented on Mar 9, 2016

@rxin
Contributor

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

tovbinm

tovbinm commented on Mar 25, 2016

@tovbinm

Please share style configs for IntelliJ

jacksu

jacksu commented on Apr 17, 2016

@jacksu

@pcleary00 please share style configs

civitaspo

civitaspo commented on Nov 29, 2017

@civitaspo

Any update?

goungoun

goungoun commented on Feb 22, 2018

@goungoun

👍

pauljamescleary

pauljamescleary commented on Feb 22, 2018

@pauljamescleary

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

JoshRosen commented on Feb 22, 2018

@JoshRosen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Is there any editorconf settings for the IDEs? · Issue #12 · databricks/scala-style-guide