You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(true){
fooBar();
doSomething();//andDoAnotherThing(); <-- dedent causes an error
alsoThisStuff();}
Additional information:
This sort of commenting is quite common in various codebases, and other frameworks. Why it's desirable:
it's MUCH neater when quickly scanning through the code - all the code is "in the right place", without being shifted to the right; also the IDE colors the comments (typically green) to make it easy to differentiate
it plays nicely with source control: commenting / uncommenting code doesn't result in ugly diffs - so we can scan through more code more quickly
Please give us an option to allow this?
The text was updated successfully, but these errors were encountered:
Brief description:
Please allow us to use dedented comments, without triggering
IDE0055
. This should be a new formatting rule.Languages applicable:
c#
Code example that the analyzer should report:
This is currently allowed:
But this fails due to
IDE0055
("Fix formatting"):Additional information:
This sort of commenting is quite common in various codebases, and other frameworks. Why it's desirable:
Please give us an option to allow this?
The text was updated successfully, but these errors were encountered: