Code Style--Alignment

Having this class
public class ABC|
{
}
and pressing enter cause
public class ABC
|
{
}
But I don't want any extends/implements to be indented.
My settings for braces placement are all at "Next line".
Is there an hidden option for this, or is it simply an bug?

6 comments
Comment actions Permalink

What else are you expecting then?

Sven Steiniger wrote:

Having this class
public class ABC|
{
}
and pressing enter cause
public class ABC
|
{
}
But I don't want any extends/implements to be indented.
My settings for braces placement are all at "Next line".
Is there an hidden option for this, or is it simply an bug?


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0
Comment actions Permalink

Forgot :)
Should be
public class ABC


{
}
because the extends/implements should be on same indent.

Martin Fuhrer schrieb:
> What else are you expecting then?
>
> Sven Steiniger wrote:
>
>> Having this class
>> public class ABC

>> {
>> }
>> and pressing enter cause
>> public class ABC
>> |
>> {
>> }
>> But I don't want any extends/implements to be indented.
>> My settings for braces placement are all at "Next line".
>> Is there an hidden option for this, or is it simply an bug?


0
Comment actions Permalink

because the extends/implements should be on same indent.


What option have you configured to tell IDEA you want it that way?

Tom

0
Comment actions Permalink

As I could not find an extra option for this, I assumed "Braces
Placement/Class declaration"="Next line" will do it.

Thomas Singer (MoTJ) schrieb:
>> because the extends/implements should be on same indent.


What option have you configured to tell IDEA you want it that way?

Tom

0
Comment actions Permalink

I pretty much agree. So file a request about it.

Sven Steiniger wrote:

As I could not find an extra option for this, I assumed "Braces
Placement/Class declaration"="Next line" will do it.

Thomas Singer (MoTJ) schrieb:

>>> because the extends/implements should be on same indent.
>>
>>
>>
>> What option have you configured to tell IDEA you want it that way?
>>
>> Tom

--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0
Comment actions Permalink

http://www.jetbrains.net/jira/browse/IDEA-4178

Martin Fuhrer schrieb:

I pretty much agree. So file a request about it.

Sven Steiniger wrote:

>> As I could not find an extra option for this, I assumed "Braces
>> Placement/Class declaration"="Next line" will do it.
>>
>> Thomas Singer (MoTJ) schrieb:
>>
>>>> because the extends/implements should be on same indent.
>>>
>>>
>>>
>>>
>>> What option have you configured to tell IDEA you want it that way?
>>>
>>> Tom


0

Please sign in to leave a comment.