How can I disable ReSharper in Visual Studio and e

2019-01-04 16:42发布

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.

11条回答
Evening l夕情丶
2楼-- · 2019-01-04 17:11

In ReSharper 8: Tools -> Options -> ReSharper -> Suspend Now

查看更多
乱世女痞
3楼-- · 2019-01-04 17:13

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

enter image description here

查看更多
走好不送
4楼-- · 2019-01-04 17:13

I always forget how to do this and this is the top result on Google. IMO, none of the answers here are satisfactory.

So this time, for the next time I search this and to help others, here's how to do it and what the button looks like to toggle it:

Toggle Resharper Toolbar Button

Open package manager console via the Quick Launch bar near the caption buttons to launch a PowerShell instance. Enter the code below into the Package Manager Console Powershell instance:

If you want to add it to the standard toolbar:

$cmdBar = $dte.CommandBars.Item("Standard") 
$cmd = $dte.Commands.Item("ReSharper_ToggleSuspended")
$ctrl = $cmd.AddControl($cmdBar, $cmdBar.Controls.Count+1)
$ctrl.Caption = "R#"

If you want to add it to a new custom toolbar:

$toolbarType = [EnvDTE.vsCommandBarType]::vsCommandBarTypeToolbar
$cmdBar = $dte.Commands.AddCommandBar("Resharper", $toolbarType)
$cmd = $dte.Commands.Item("ReSharper_ToggleSuspended")
$ctrl = $cmd.AddControl($cmdBar, $cmdBar.Controls.Count+1)
$ctrl.Caption = "R#"

If you mess up or weren't happy with the bar you added it to and need to start over, remove it with:

$ctrl.Delete($cmdBar)
$dte.Commands.RemoveCommandBar($cmdBar)

In addition to adding the button, the keyboard shortcut ctrl+shift+Num -, ctrl+shift+Num - (that is: ctrl shift and double-tap keypad_minus) works great.

EDIT: Looks like StingyJack found the original post I found long ago, that never shows up when I do a google search for this: https://stackoverflow.com/a/41792417/16391

查看更多
在下西门庆
5楼-- · 2019-01-04 17:15

In case the solution did not help to just suspend resharper (STRG+R, STRG+R did still not work for example) I decided to disable the plugin and restart visual studio.

VisualStudio > Extras > Extensions > Resharper > Disable

https://docs.microsoft.com/en-us/visualstudio/extensibility/how-to-diagnose-extension-performance enter image description here

查看更多
Root(大扎)
6楼-- · 2019-01-04 17:15

In Visual Studio 2017 ReSharper 2018.X.X can be enabled and disabled by going to Help > Manage Visual Studio Performance. Then select JetBrains ReSharper ... under Extensions.

enter image description here

查看更多
登录 后发表回答