问题
How do I keep Resharper from disabling the "Show live semantic errors" & "Underline errors" options in Visual Studio? It seems that whenever I go and manually enable them, they somehow revert back to disabled after some time - I suspect Resharper of doing this. Is there any remedy for this?
回答1:
You have to turn off ReSharper's own code analysis if you want the VS error detection options to be preserved.
To do that, go to ReSharper > Options > Code Inspection > Settings, and deselect "Enable code analysis".
If ReSharper code analysis is on, it turns VS native C# error highlighting off on every initialization. This VS functionality is considered redundant in light of ReSharper's 1k+ own code highlightings.
来源:https://stackoverflow.com/questions/7464772/resharper-keeps-disabling-show-live-semantic-errors-in-visual-studio-2010