This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 170166 - (java formatting) add ability to add blank lines before javadoc comments
Summary: (java formatting) add ability to add blank lines before javadoc comments
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Rastislav Komara
Depends on:
Reported: 2009-08-10 23:10 UTC by athompson
Modified: 2014-11-21 13:38 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2009-08-10 23:10:51 UTC
this should be pretty easy but useful.  under Tools-->Options-->Formatting-->Java-->Blank Lines, add the ability to
insert blank lines before javadoc comments.  many people don't want to skip lines between self-explanatory field names
as this wastes space, so the blank lines before and after fields is usually left to '0'.  however, on the fields that
one does provide a comment for, it is more readable and aesthetically pleasing to skip a line, so that there is space
between the comment and the preceding class member.

since there are other conceivable use cases, such as not wanting to skip lines between method signatures in interfaces
unless there's a javadoc comment, it may be a good idea to make the option a bit more generic, such as 'Before/After
Members with Javadoc Comments'.  this would be the better option, but may be a bit trickier to implement.
Comment 1 athompson 2013-04-05 20:27:30 UTC
Comment 2 klr8 2014-11-21 13:38:15 UTC
Seems to be closely related to 17839.