Bug 10859 - Code formatter inserts indentation within the class
Summary: Code formatter inserts indentation within the class
Status: RESOLVED DUPLICATE of bug 3276
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-06 10:08 EST by Randy Hudson CLA
Modified: 2002-07-30 13:48 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 Randy Hudson CLA 2002-03-06 10:08:46 EST
If I format a class, I get:
public class Foo extends SuperClass implement IFoo {
	public void bar(){
		//code
	}
}

What I really want is:

public class Foo
	extends SuperClass
	implements IFoo
{

public void bar(){
	//code
}

}

Perhaps the class heading is a little bit abnormal, but I think almost everyone 
leaves out the first-level indent in their class bodies (for non-nested/inner 
types)
Comment 1 Philipe Mulet CLA 2002-03-12 08:54:57 EST
Will consider post2.0
Comment 2 Philipe Mulet CLA 2002-07-25 06:30:38 EDT
Resurrecting formatter issues in 2.1 stream.
Comment 3 Philipe Mulet CLA 2002-07-25 06:32:32 EDT
Clearing resolution
Comment 4 Olivier Thomann CLA 2002-07-30 13:48:59 EDT

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