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

Bug 62799

Summary: smart indent not so smart in case blocks:
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
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 Martin Aeschlimann CLA 2004-05-18 16:53:12 EDT
20040518

When entering a case statement, the autoindent isn't so helpfull. Indentation
get's bigger and bigger
		switch (i) {
			case 2:
				i= 9;
				break;
				case 3:
Comment 1 Tom Hofmann CLA 2004-05-19 03:11:40 EDT
Marking as dup of bug 49903 since it covers the same problem. To fix this, we
would need to indent a line as you type (upon detecting typing a 'case'). We
have refrained from this so far except for braces.

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