Is there a way to disable ReSharper for a specific file?

I want to tell ReSharper to ignore multiple files in my project. Some of them are too large (they contain complete test data). Some of them just confuse it (with Silverlight's mishmash and .NET code).

Is there a way to do this by putting a comment at the top of the file?

However, this was done, it must be permanent (that is, it can be checked) for each file.

I found this one , but it does not seem to persist.

+52
resharper
Oct 04
source share
3 answers

To skip checks in some files or folders, go to ReSharper | Options | Code Check | SettingsChange items to scroll . Or, if your code is generated, add it to the appropriate list in ReSharper | Options | Create code . You can learn more about how this works here .

+40
Oct 04 '12 at 11:13
source share

You can apply this to individual files using a keyboard shortcut.

When opening a file, try both of them (the actual shortcut depends on your environment).

  • Ctrl + Shift + Alt + 8
  • Ctrl + 8

You will see that it switches the processing of this particular file.

The name of this shortcut in the Keyboard dialog box is ReSharper_EnableDaemon .

+52
04 Oct '12 at 11:21
source share

This may be a function in a newer version than the one that was available when the question was originally asked.

You can prevent code verification for a specific block (or file) using comments:

 // ReSharper disable All 

and

 // ReSharper restore All 

See here .

+44
Nov 19 '13 at 2:10
source share



All Articles