This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3 Replies Last post: Feb 2, 2010 12:35 AM by Adrian Banks  
jye Newbie 7 posts since
Sep 6, 2008
Currently Being Moderated

Oct 9, 2008 9:59 AM

// 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

Guest
Currently Being Moderated
Oct 9, 2008 8:58 PM in response to: jye
Re: // ReSharper disable RedundantUsingDirective

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!”

 

 

 

Adrian Banks Novice 119 posts since
Aug 19, 2002
Currently Being Moderated
Feb 2, 2010 12:35 AM in response to: Serge Baltic
Re: // ReSharper disable RedundantUsingDirective

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.

More Like This

  • Retrieving data ...