Comments (9)
this is intellij 2019.3
from java-code-styles.
Can you illustrate what that would change?
My best guess is that it changes the behavior from
/**
* Foo
* <p>
* Bar
*/
to
/**
* Foo
*
* <p>Bar
*/
which is not what we want.
Oracle's Javadoc guide recommends the <p>
be placed on its own line. I can't find the link right now, but I have in the past when this has come up.
from java-code-styles.
Here's a link: https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html#format
It's not the one I'm thinking of, but it does illustrate that <p>
goes on its own line.
from java-code-styles.
@JakeWharton, not quite.
When that setting is unticked you have this (empty line allowed to stay empty):
/**
* Foo
*
* Bar
*/
Once ticked, the autoformatter inserts <p>
on the empty line:
/**
* Foo
* <p>
* Bar
*/
I just checked 2019.1, and it looks like it's unticked by default with the Java Code Styles there, so it must have changed at some point between that version and 2019.3.
from java-code-styles.
I have a fresh 2020.2 EAP installation from today into which I installed the styles and the checkbox is ticked for me:
from java-code-styles.
🤦
Whoops. Forgot to restart to actually get the styles...
from java-code-styles.
Take 2
from java-code-styles.
Ah interesting. Was this an intentional change to the Java Code Style? Or an oversight?
from java-code-styles.
huh, so I see now that the settings repo isn't specific to any IJ version. And it looks like the setting we're talking about is already false (the desired behavior) in the repo:
<option name="JD_P_AT_EMPTY_LINES" value="false" />
So I'm at a loss as to why it's defaulting to true in some cases. Will try to replicate tomorrow.
from java-code-styles.
Related Issues (20)
- Checkstyle rules cannot be loaded (CheckStyle 6.17) HOT 1
- How to add coding style in android HOT 13
- Kotlin code styles HOT 6
- 没的mac的脚本吗? HOT 2
- Reconcile the two styles into one
- IntelliJ 2017.3 support HOT 1
- app:layout_* should sort above app:* in XML attributes
- Error while installing on ubuntu HOT 3
- SquareAndroid: Kotlin method declaration params should only wrap if long HOT 5
- Question about kotlin-code-styles HOT 1
- Support for .editorconfig file format HOT 4
- on newer android-studio, code style is reset to default after restart IDE HOT 1
- Use official code style IDE support introduced with Kotlin 1.3 HOT 2
- SquareAndroid reorder xml tag HOT 2
- Import does not work with Intellij Idea CE 2020.1 HOT 1
- Consider converting to a settings repository
- Support settings repository
- Consider else statements being on a separate line HOT 1
- :square:coding:
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 java-code-styles.