Resharper uninstall - Visual Studio no longer shows correct error highlighting

流过昼夜 提交于 2019-12-03 03:27:25

问题


I've been trying out resharper and decided that I'd like to uninstall. However, after doing so, Visual Studio no longer shows red underline highlighting that it normally uses to identify the location of errors in the code.

This has happened on two of our PCs so far. I've tried a reinstall and a repair, but no luck. Any ideas how I can restore the highlighting in Visual Studio?

Cheers

Nick


回答1:


Go to Tools → Options → Text Editor → C# → Advanced, check the following options:

  • Underline errors in the editor
  • Show live semantic errors




回答2:


In fact, Resharper (as of 8.1) clobbers more than just the Error highlightinng settings. For instance, autocomplete for XAML files is broken, after the uninstall; and accord to Resharper support, various other key bindings are broken as well. I strongly suspect that Visual Studio 2012 is thoroughly broken by the uninstall in all kinds of ways.

In visual studio 2012, the solution seems to be to RESET all of your Visual Studio settings to default value.

Go to the Tools menu, select "Import and Export Setings...". Select the "Reset all settings" radio button, and click "Next".

After clicking "next", you will be prompted for a location in which to save current (broken) settings. Interestinglly, the default directory for the Export Settings dialog points to a directory that has been orphaned by the Resharper installer; and there just happens to be an export file there already. It might be iteresting to try restoring that settings file. The date on mine appears to be at or about the time that I installed Resharper. I suspect it's a save file generated by their installer (but ignored by their uninstaller).

Anyway. The reset worked for me. If you're brave, you might experiment with the export file left by the Resharper installer.

General complaint (because I am so annoyed by all of this.... 11,000+ views to this page on StackExcange so far, 3 years after the thread was started). Resharper tech support has a FOUR year old bug report covering damage done by the uninstall. Four years later, it's still not fixed. By my rough back-of-the-envelope calculation, I'm going to guess that the Resharper uninstall for their demo version has trashed Visual Studio for somewhere in the neighborhood of 30,000 developers. And it is trashed. Let there be no mistake. Although not immediately apparent, major features of Visual studio have been left disabled, and the result is an instance of Visual Studio that is utterly unusable for development. Shoddy.




回答3:


Go to tools -> options and under Environment select the Fonts and Colors node.

Choose to show the settings for Text Editor and in the Display items listbox look up the item "Syntax Error" and fix the setting.

Another option might be to use the "Use Defaults" button on top of the same options form.




回答4:


I had a similar problem - not sure if it was brought on by Resharper uninstall - and it got fixed by installing VS 2008 SP 1.

http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en




回答5:


Same thing happens in VS2013 when the trial expires, this seems like something that should really be fixed after all this time. :\



来源:https://stackoverflow.com/questions/828477/resharper-uninstall-visual-studio-no-longer-shows-correct-error-highlighting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!