Disable, but not uninstall Resharper 4.x onwards

2019-01-16 09:24发布

Any ideas on how to disable, but not uninstall Resharper 4.x or above?

10条回答
【Aperson】
2楼-- · 2019-01-16 10:10

I only need to disable ReSharper when editing Nant files. It was recently "enhanced" in 6.1 and has since broken the existing intellisense provided by Visual Studio. Instead of worrying about dancing around enabling and disabling, I decided to create a batch file that loads my Nant solution but loads VS in safe mode. Seems be to working great as I'm using VS for nothing more than a fancy text editor when it comes to Nant.

Example: Put the following in a text file saved as a bat or cmd.

My file: "nantbuild.cmd"

devenv psbuild.sln /safemode
查看更多
三岁会撩人
3楼-- · 2019-01-16 10:12

For Visual Studio 2012 and Resharper 7+, create a shortcut for Visual Studio and add the following switch:

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /Resharper.Suspend

Now you have a way to have Visual Studio open with Resharper already disabled.

查看更多
兄弟一词,经得起流年.
4楼-- · 2019-01-16 10:13

You can also press Ctrl+8.

查看更多
甜甜的少女心
5楼-- · 2019-01-16 10:16

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 event set a keyboard shortcut for this purpose. In VS, go to Tools > Options > Environment > Keyboard.

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

查看更多
登录 后发表回答