Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 71400 - blank line after closing bracket
Summary: blank line after closing bracket
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 14:40 EDT by Matt Ray CLA
Modified: 2009-08-30 02:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Ray CLA 2004-08-04 14:40:51 EDT
I would like the option of a blank line after a closing bracket.  This would be
for do/while/for/if statements.  

Example:
void test(int a, int b) {
  if (a != b) {
    if (a > b) { b++; }
  }
}

becomes

void test(int a, int b)
{
  if (a != b) 
    {
      if (a > b)
        {
          b++;
        }

    }

}

This is the coding standard where I work, and I can't get Eclipse to produce
such behavior.  Thanks.
Comment 1 Olivier Thomann CLA 2004-08-06 13:31:06 EDT
What would be the desired behavior in case of a if/else.
if (c) {
} else {
}

Do you want empty lines to be added before the else or just at the end of the if
statement?
Comment 2 Matt Ray CLA 2004-08-06 13:54:41 EDT
My preference is blank lines at the end of the if, but not the else.  Making it
configurable would probably be preferred since someone is sure to want a
carriage return before the else.
Comment 3 Olivier Thomann CLA 2004-08-06 15:43:09 EDT
The carriage return before the else is already configurable. I am simply talking
about the location of empty lines.
Comment 4 Philipe Mulet CLA 2005-04-07 08:01:38 EDT
Deferring post 3.1
Comment 5 Eclipse Webmaster CLA 2009-08-30 02:36:03 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.