Do not put comment after a closing brace in a new line

I was just introduced to ReSharper and I love it very much. I am not sure if the setting I am looking for is in ReSharper 5.1 since I am a little overwhelmed though I did check all the coding sytle settings before coming here and ask.

Essentially, I have the following code

        public UInt16 MyFunction
        {
            get { return _someNumber; }
        } // MyFunction

After applying code cleanup, it was changed to the following

        public UInt16 MyFunction
         {
             get { return _someNumber; }
         }

        // MyFunction

Is there a way to not do that and keep the original formatting?

2 comments

Hello Jackson,

At the moment there's no way to keep the comment on the same line as the
closing brace. There's a feature request in our tracker: http://youtrack.jetbrains.net/issue/RSRP-78897
and you're welcome to vote for it. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I was just introduced to ReSharper and I love it very much. I am not
sure if the setting I am looking for is in ReSharper 5.1 since I am a
little overwhelmed though I did check all the coding sytle settings
before coming here and ask.

Essentially, I have the following code

public UInt16 MyFunction
{
get { return _someNumber; }
} // MyFunction
After applying code cleanup, it was changed to the following

public UInt16 MyFunction
{
get { return _someNumber; }
}
// MyFunction

Is there a way to not do that and keep the original formatting?

---
Original message URL:
http://devnet.jetbrains.net/message/5281590#5281590



0

Thanks, I've voted for it. Hopefully this will get resolved. I know with ReSharper's features, we no longer need to mark the end of a long function with the comment like I mentioned above to indicate what the closing bracer is for. However, because of our coding standard enforced within the company, we need to have that. :)

0

Please sign in to leave a comment.