Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348824

Summary: Format Source Code removes all blank lines except one. Need to have option to set number of blank lines to preserve.
Product: [Tools] CDT Reporter: neotheone222
Component: cdt-refactoringAssignee: Project Inbox <cdt-refactoring-inbox>
Status: CLOSED DUPLICATE QA Contact: Emanuel Graf <emanuel>
Severity: normal    
Priority: P3 CC: aleherb+eclipse, cdtdoug, neotheone222
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description neotheone222 CLA 2011-06-08 22:03:32 EDT
Build Identifier: M20100211-1343

Pressing Ctrl+Shift+F for format in CDT preserves only one blank line.

Reproducible: Always

Steps to Reproduce:
1. Suppose we have the following 3 functions each separated by 3 lines.
void
func1()
{
  //body
}



void
func2()
{
  //body
}



void
func3()
{
  //body
}

2. After using Ctrl+Shift+F, we get:
void
func1()
{
  //body
}

void
func2()
{
  //body
}

void
func3()
{
  //body
}

3. This feature is already present for Java IDE but not for C/C++ IDE.
Comment 1 Anton Leherbauer CLA 2011-06-10 04:45:43 EDT

*** This bug has been marked as a duplicate of bug 249444 ***