// 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
Please sign in to leave a comment.
Hello,
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.
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!”
That's exactly what I was looking for. Thank you
Is this still the case in R# 4.5? I've tried it and it does reformat the code inside generated regions.