Can ReSharper Code Cleanup format comments?

I've been searching for a way to have ReSharper's Code Cleanup cleanup my code comments. That is, I'd like to always have a space after the // or ///. I couldn't find an option for this. Did I overlook the option or should I create a feature request for it?

It might not even be practical now that I think of it. Cause sometimes you align your comments like:

// History: 01/01/2011 Initial version
//          07/01/2011 Updated version
// This is a long comment with some bullets in it
// - This is the first bullet in this comment and
//   I've aligned it properly


In a situation like that I don't want to have it changed to

// History: 01/01/2011 Initial version // 07/01/2011 Updated version // This is a long comment with some bullets in it // - This is the first bullet in this comment and // I've aligned it properly


But what I do like to prevent is that some programmers use

//I don't use spaces


While others use

// I do use spaces



So if there are multiple spaces they shouldn't be removed, but if no spaces exists at all, at least one space should be inserted.

Any thoughts on that?

1 comment

Hello Dick,

There's no such option yet. There's a feature request in our tracker: http://youtrack.jetbrains.net/issue/RSRP-78312
and you can vote for it. Thank you!

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

I've been searching for a way to have ReSharper's Code Cleanup cleanup
my code comments. That is, I'd like to always have a space after the
// or ///. I couldn't find an option for this. Did I overlook the
option or should I create a feature request for it?

It might not even be practical now that I think of it. Cause sometimes
you align your comments like:

 Initial version
> 
> //          07/01/2011 Updated version
> 
> // This is a long comment with some bullets in it
> 
> // - This is the first bullet in this comment and
> 
> //   I've aligned it properly]]>


In a situation like that I don't want to have it changed to

 History: 01/01/2011 Initial version]]>


// 07/01/2011 Updated version

// This is a long comment with some bullets in it

// - This is the first bullet in this comment and

// I've aligned it properly

 ]]>

But what I do like to prevent is that some programmers use


While others use


So if there are multiple spaces they shouldn't be removed, but if no
spaces exists at all, at least one space should be inserted.

Any thoughts on that?

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



0

Please sign in to leave a comment.