Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 74951 - Cannot obtain proper indentation in case statement
Summary: Cannot obtain proper indentation in case statement
Status: RESOLVED DUPLICATE of bug 49903
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 10:54 EDT by Randy Hudson CLA
Modified: 2004-09-24 11:34 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 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 ***