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

Bug 108481

Summary: Bad auto-indentation on continuations
Product: [Eclipse Project] JDT Reporter: Jonathan Edwards <edwards>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jonathan Edwards CLA 2005-08-31 12:14:10 EDT
There are a number of places where statments and expressions which are continued
over multiple lines get bogus auto-indentation. Here are some examples:

a = b
+ c;

for (int i = 0;
i < 1; i++);

i = (true 
        ? 1 
                : 0);

I have not found any settings that can fix these cases.
Comment 1 Dani Megert CLA 2005-08-31 12:22:02 EDT
Auto-indentation normally uses the formatter settings. If this is not the case
then please provide the cases that do not work for you and attach your formatter
profile and your preference, see also:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-text-home/development/bug-incomplete.htm
Comment 2 Tom Hofmann CLA 2005-08-31 12:34:31 EDT
reopen to mark as dup.
Comment 3 Tom Hofmann CLA 2005-08-31 12:35:00 EDT
continuation problems with auto-indent / smart paste handled in bug 65317

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