Prevent resharper changing comment alignment

Answered

I'm working with IL and use comments like:

emit.LoadArgument(DICTIONARY);    //stack: [dict]
emit.LoadConstant(argument.Name); //stack: [dict] [arg name]
emit.LoadLocalAddress(value);           //stack: [dict] [arg name] [ref value]

However if i format my document the comments are shifted into:

emit.LoadArgument(DICTIONARY); //stack: [dict]
emit.LoadConstant(argument.Name); //stack: [dict] [arg name]
emit.LoadLocalAddress(value); //stack: [dict] [arg name] [ref value]

Is there any way to disable this? I sure couldn't find anything relevant in options. 

Honestly resharper should probably never attempt to align code comments, XML doc comments? sure. But any developer will have far greater understanding of why they placed a comment in the exact location they did and that it was likely 100% intentfully purposed.

3 comments
Comment actions Permalink
Official comment

Hello Chris,

Feel free to follow and vote for https://youtrack.jetbrains.com/issue/RSRP-429048 ticket about the same things.

Thanks! 

Comment actions Permalink

Hi,

Will there be a fix to this anytime soon?

Thanks,

Roman

 

 

0
Comment actions Permalink

This is a pretty important thing

+1

0

Please sign in to leave a comment.