Comments (12)
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:
from scala-style-guide.
Please share style configs for IntelliJ
from scala-style-guide.
👍 IntelliJ - was going to do this meself
from scala-style-guide.
👍
from scala-style-guide.
👍
from scala-style-guide.
I need
from scala-style-guide.
I think we should provide this too. Will look into it.
from scala-style-guide.
@pcleary00 if you do create one, please submit a pull request here too. Thanks!
from scala-style-guide.
@pcleary00 please share style configs
from scala-style-guide.
Any update?
from scala-style-guide.
👍
from scala-style-guide.
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)
- Question on: "Avoid defining apply methods on classes" HOT 2
- Synchronized definitions which exceed 100 columns HOT 2
- Update apply method section in Chinese translation HOT 1
- Adding Korean version of guide line. HOT 16
- Thoughts about Option.get HOT 2
- Revisit non-scalaish recommendations HOT 8
- Encourage to use `==` instead of `===` for writing unit tests. HOT 9
- Discourage changing external API's method signature for binary compatibility HOT 3
- Automated checks for CI ? HOT 3
- Multi-line vs single-line method and class constructor declarations and invocations HOT 5
- ConcurrentMap qualifications HOT 1
- Constants Naming Convention
- Clarifying whitespace guidelines for classes
- Missing "t" in the last section
- Make it clear that there must be a space between class declaration and curly braces
- Do we have any spark scala syntax to read edi files into data frame
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala-style-guide.