How can I disable ReSharper in Visual Studio and enable it again?

I installed ReSharper, and it works in Visual Studio, but how can disable it?

Whenever I search in the ReSharper menu I can't find a disable option.


You can disable ReSharper 5 and newer versions by using the Suspend button in menu Tools -> Options -> ReSharper.

在这里输入图像描述


If you want to do it without clicking too much, open the Command Window (Ctrl + W, A) and type:

ReSharper_Suspend or ReSharper_Resume depending on what you want.

Or you can even set a keyboard shortcut for this purpose. In Visual Studio, go to Tools -> Options -> Environment -> Keyboard.

There you can assign a keyboard shortcut to ReSharper_Suspend and ReSharper_Resume .

The Command Window can also be opened with Ctrl + Alt + A, just in case you're in the editor.


Bind ReSharper_ToggleSuspended to a shortcut key.

Steps:

  • Tools>Options
  • Click Keyboard on the left hand side
  • Type "suspend" in the "Show commands containing:" input box
  • Pick the "ReSharper_ToggleSuspended"
  • Press shortcut keys: and
  • Press the "Assign" button.
  • Binding ReSharper_ToggleSuspended to a shortcut key (in my case: Ctrl-Shift-Q) works very well. With ReSharper not supporting the async CTP yet (as of mid-2011), when dipping into the code the uses the async keyword, this shortcut is invaluable.

    链接地址: http://www.djcxy.com/p/19056.html

    上一篇: 为Visual Studio格式化代码快捷方式?

    下一篇: 如何在Visual Studio中禁用ReSharper并再次启用它?