This Question is Answered

2 "helpful" answers available (2 pts)
2 Replies Last post: Aug 15, 2013 5:16 PM by Kristjan Laane  
Kristjan Laane Newbie 3 posts since
Aug 6, 2013
Currently Being Moderated

Aug 6, 2013 1:04 PM

remove extra spaces in comments with resharper cleanup / reformat

I often comment lines,

but if the line is indented (almost always) then it leaves ugly whitespace inside the comment, like so:

Headers.Add(new List<string>
{
    BondsMonth,
    BondsIdCode,
    //                BondsBondTaken,
    //                // BondsPayments0,
    BondsPaidBackStatus,
});
  • I looked through Resharper C# Code Editing options, but could not  find an option to make code cleanup / reformatting remove those  additional spaces?
  • Or is it possible to make the comment shortcut / function remove more than 1 space in the first place?

 

Alex Berezoutsky JetBrains 581 posts since
Feb 18, 2011
Currently Being Moderated
Aug 15, 2013 2:22 PM in response to: Kristjan Laane
Re: remove extra spaces in comments with resharper cleanup / reformat

Hi,

 

Do you have StyleCop installed? I beleive ReSharper itself has no such formatting option there.

Please let me know.

 

Thanks!

More Like This

  • Retrieving data ...