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

Bug 124984

Summary: format doesn't work
Product: [Tools] CDT Reporter: Richard van der Hoff <richardv>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Richard van der Hoff CLA 2006-01-24 06:04:15 EST
I originally commented about this on bug #22932, but progress seems a little, uh, limited, there.

I can't help the feeling I must be either be doing something stupid, or failing
to find the right bug in bugzilla, but this [the formatter] really doesn't work for me at all.

The formatter does correctly indent when I open or close a brace:

if(foo) {
    /* this line starts here */
}

but 'Format' on the edit menu doesn't do anything, and 'Indent line' (which I
have bound to 'Tab') just inserts four spaces at the cursor.
Comment 1 Anton Leherbauer CLA 2006-08-30 07:27:17 EDT

*** This bug has been marked as a duplicate of 95274 ***
Comment 2 Richard van der Hoff CLA 2006-08-30 08:23:45 EDT
Is this really a duplicate of #95274? The interesting thing here is that the formatter does *something* - ie, when I open a brace, the cursor goes to the right place on the next line - it's just that one can't format retrospectively.

My reading of bug 95274 is that the formatter wouldn't do anything at all. Perhaps I'm misunderstanding though.