Request for more code formatting options for multiple attributes

Hi,

I really like the updated Code Formatting settings. However, I'd like to see
more options for formatting of attributes, esp. when attaching multiple
attributes. I see following four options:

1. Single line


2. Multiple lines, brackets before first and after last in line
[Attribute1,
Attribute2,
Attribute1]

3. Multiple lines, brackets in separate lines
[
Attribute1,
Attribute2,
Attribute3
]

4. Multiple lines, each attribute enclosed within brackets




What do you think?

Regards,
Thomas


2 comments
Comment actions Permalink

Hi Thomas,

Thank you for the good suggestions.

Items 1, 2, 3 will be implemented shortly

Item 4 will be implemented too, but a little bit later, with the ability to
sort modifiers, adding/removing braces for single operator, etc.

--
---
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Thomas Freudenberg" <jetbrains@thomasfreudenberg.com> wrote in message
news:c7ngt8$rij$1@is.intellij.net...

Hi,

>

I really like the updated Code Formatting settings. However, I'd like to

see

more options for formatting of attributes, esp. when attaching multiple
attributes. I see following four options:

>

1. Single line

>

2. Multiple lines, brackets before first and after last in line
[Attribute1,
Attribute2,
Attribute1]

>

3. Multiple lines, brackets in separate lines
[
Attribute1,
Attribute2,
Attribute3
]

>

4. Multiple lines, each attribute enclosed within brackets


>

What do you think?

>

Regards,
Thomas

>
>


0
Comment actions Permalink

Should add explicit setting for where the code starts as well...

.
.
public void MyMethod()

.
.
public void MyMethod()

.
.

public void MyMethod()

I tend to use the first one, especially in my unit tests... looks better
after MO (collapse to definitions).

/jhd

"Eugene Pasynkov (JetBrains, Inc.)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:c7o4ts$l7v$1@is.intellij.net...

Hi Thomas,

>

Thank you for the good suggestions.

>

Items 1, 2, 3 will be implemented shortly

>

Item 4 will be implemented too, but a little bit later, with the ability

to

sort modifiers, adding/removing braces for single operator, etc.

>

--
---
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Thomas Freudenberg" <jetbrains@thomasfreudenberg.com> wrote in message
news:c7ngt8$rij$1@is.intellij.net...

Hi,

>

I really like the updated Code Formatting settings. However, I'd like to

see

more options for formatting of attributes, esp. when attaching multiple
attributes. I see following four options:

>

1. Single line

>

2. Multiple lines, brackets before first and after last in line
[Attribute1,
Attribute2,
Attribute1]

>

3. Multiple lines, brackets in separate lines
[
Attribute1,
Attribute2,
Attribute3
]

>

4. Multiple lines, each attribute enclosed within brackets


>

What do you think?

>

Regards,
Thomas

>
>

>
>



0

Please sign in to leave a comment.