Code Monkey home page Code Monkey logo

Comments (12)

JoshRosen avatar JoshRosen commented on May 10, 2024 15

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

from scala-style-guide.

tovbinm avatar tovbinm commented on May 10, 2024 10

Please share style configs for IntelliJ

from scala-style-guide.

pcleary00 avatar pcleary00 commented on May 10, 2024 7

👍 IntelliJ - was going to do this meself

from scala-style-guide.

mariussoutier avatar mariussoutier commented on May 10, 2024

👍

from scala-style-guide.

MarkRBM avatar MarkRBM commented on May 10, 2024

👍

from scala-style-guide.

jacksu avatar jacksu commented on May 10, 2024

I need

from scala-style-guide.

rxin avatar rxin commented on May 10, 2024

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

from scala-style-guide.

rxin avatar rxin commented on May 10, 2024

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

from scala-style-guide.

jacksu avatar jacksu commented on May 10, 2024

@pcleary00 please share style configs

from scala-style-guide.

civitaspo avatar civitaspo commented on May 10, 2024

Any update?

from scala-style-guide.

goungoun avatar goungoun commented on May 10, 2024

👍

from scala-style-guide.

pauljamescleary avatar pauljamescleary commented on May 10, 2024

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.

from scala-style-guide.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.