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

Bug 74951

Summary: Cannot obtain proper indentation in case statement
Product: [Eclipse Project] JDT Reporter: Randy Hudson <hudsonr>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Randy Hudson CLA 2004-09-24 10:54:52 EDT
given:
switch (value) {
    case 0:
       return;
       break;
<<CARET>>
}

If you press TAB at the CARET, 2 TABS are insered.  Then, if you BACKSPACE, 
both tabs are removed.  It is too hard to get to the proper indentation (1 TAB).
Comment 1 Dani Megert CLA 2004-09-24 11:18:57 EDT

*** This bug has been marked as a duplicate of 74505 ***
Comment 2 Tom Hofmann CLA 2004-09-24 11:33:42 EDT
not a dup - the problem here is that the indentation inside a 'case' is two
units, but the user actually wants to start another 'case' and therefore just
one unit
Comment 3 Tom Hofmann CLA 2004-09-24 11:34:07 EDT
actually, this *has* been requested before.

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