Reformatting splits [Attribute] and code

I don't want code formatting to separate from code. The one
place this is important for me is my unit tests. In my unit tests I want
(or , , etc.) to remain on the same line with the
method signature.

Should anyone care why I've attached an image that should explain it ;) I
use MO (collapse to definitions) a lot! [Attributes] are collapsed
(comment placeholder), unless they are on same line w/code. I like to see
which methods are tagged .

Before...

public void SomeMethod()

After...


public void SomeMethod()





Attachment(s):
CollapsedAttributes.JPG
2 comments
Comment actions Permalink

Hi John,

Thank you for the report.

To place the attributes on the same line as the method use the following
code formatting option:

ReSharper->Options->Code Formatting->Place method attribute on the same line

--
---
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"John Dhom" <a@b.c> wrote in message news:c7u8a1$a4h$1@is.intellij.net...

I don't want code formatting to separate from code. The one
place this is important for me is my unit tests. In my unit tests I want
(or , , etc.) to remain on the same line with the
method signature.

>

Should anyone care why I've attached an image that should explain it ;) I
use MO (collapse to definitions) a lot! [Attributes] are collapsed
(comment placeholder), unless they are on same line w/code. I like to

see

which methods are tagged .

>

Before...

>

public void SomeMethod()

>

After...

>


public void SomeMethod()

>
>
>


0
Comment actions Permalink

too funny, thx. Thought the suggestion, in earlier thread, had gone
unnoticed ;)

/jhd

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

Hi John,

>

Thank you for the report.

>

To place the attributes on the same line as the method use the following
code formatting option:

>

ReSharper->Options->Code Formatting->Place method attribute on the same

line
>

--
---
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"John Dhom" <a@b.c> wrote in message news:c7u8a1$a4h$1@is.intellij.net...

I don't want code formatting to separate from code. The one
place this is important for me is my unit tests. In my unit tests I want
(or , , etc.) to remain on the same line with

the

method signature.

>

Should anyone care why I've attached an image that should explain it ;)

I

use MO (collapse to definitions) a lot! [Attributes] are collapsed
(comment placeholder), unless they are on same line w/code. I like to

see

which methods are tagged .

>

Before...

>

public void SomeMethod()

>

After...

>


public void SomeMethod()

>
>
>

>
>


0

Please sign in to leave a comment.