Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Indent Switch Cases - Still a problem?

icanseeMar 5 2010 — edited Mar 5 2010
I posted previously on this topic during the preview... seems to still exist... (I've been just dealing with it, figured I should follow up)

2758598

Anyway when I type the following out it works as intended...

switch(m_data_type) {
....case 0:
........break;
....case 1:
........break;
}

Its auto indented properly and everything is perfect, but now the problem is that when you need to add braces in the case block's the formatting gets messed up and I have to fix the indention... see the following.

I type case 2:[press enter]
[hit backspace to remove first indent]{

and the result is this...

....case 2:
........{
........break;

Instead of what I typed

....case 2:
....{
........break;

The brace is indented, I would prefer If I didn't have to hit the backspace the first time and when I type { as the first line/char after going to the new line it unindents.

I've messed with the settings in "Tools > Preferences > Code Editor > Code Style" but still can't seem to get it to function the way I think it should.
Using 11.1.1.2.0 FYI

Edited by: icansee on Mar 4, 2010 11:43 PM
fixed typo
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2010
Added on Mar 5 2010
5 comments
1,085 views