Bug 23241 - Formatting for switch/case
Summary: Formatting for switch/case
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-05 16:41 EDT by Alan Oursland CLA
Modified: 2009-08-30 02: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 Alan Oursland CLA 2002-09-05 16:41:42 EDT
I prefer my switch/case statements to be formatted like this:
	switch(n) {
		case 0: {
			doSomething();
		} break;
	}

It would be nice if I could make eclipse format this way.

Current formatting differs in:
- space before ':' in case
- opening bracket on line after case
- opening bracket indented base case
- break on line after closing brace
Comment 1 Olivier Thomann CLA 2003-01-15 13:23:09 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in the works. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 2 Philipe Mulet CLA 2003-06-12 06:36:07 EDT
Resurrecting for 3.0
Comment 3 Philipe Mulet CLA 2004-05-19 10:33:05 EDT
Removing milestone of deferred item.
Comment 4 Eclipse Webmaster CLA 2009-08-30 02:34:05 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.