// ReSharper disable RedundantUsingDirective

I Looked at help material and searched in this forum but I can't find documentation regarding to "directives"

Does anyone knows if there is a complete list of Directives that understood by ReSharper?

Also is there such directive that prevent Code Cleanup to stop reformatting certain part of the source code ?
e.g)

// ReSharper disable CodeCleanup

My Code That shouldn't be reformatted goes here

// ReSharper restore CodeCleanup

Thanks in advance

3 comments

Hello,

Does anyone knows if there is a complete list of Directives that
understood by ReSharper?


There's no such list available in the documentation. The pragmas and comments
are intended to be inserted when you choose "Suppress..." from the bulb drop-down
menu.

Also is there such directive that prevent Code Cleanup to stop
reformatting certain part of the source code ?


Generated code regions, as specified on the Options / Code Inspection / Settings
page (R#4), are ignored by CodeCleanup.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0


Generated code regions, as specified on the Options / Code Inspection / Settings page (R#4), are ignored by CodeCleanup.


That's exactly what I was looking for. Thank you

0

Generated code regions, as specified on the Options / Code Inspection / Settings
page (R#4), are ignored by CodeCleanup.



Is this still the case in R# 4.5? I've tried it and it does reformat the code inside generated regions.
0

Please sign in to leave a comment.