Visual Studio Editor does not underline errors anymore

前端 未结 7 1341
暗喜
暗喜 2020-12-13 11:58

My Visual Studio (2008) Editor has stopped to underline Errors (this nifty wavy red lines). I can\'t really tell when, but it can be related to the installation of .Net Fram

相关标签:
7条回答
  • 2020-12-13 12:06

    For visual studio 2017 act according to HeeJae's comments in:

    https://developercommunity.visualstudio.com/content/problem/113112/design-time-error-checking-isnt-working.html

    i.e:

    Hi. you are probably hitting a known issue. can you try this?

    1.Update to latest release If that doesn’t solve it

    2.Go to Tools\Options\Projects and Solutions\General and uncheck “Allow parallel project initialization”.

    3.Close VS.

    4.Delete the “.vs” directory beside their solution file.

    5.Reopen VS.

    ..

    thank you

    You can re-enable the "Allow parallel project initialization" option after the issue was solved.

    I tried to upgrade VS, reset VS settings, clear VS cache and everything people do conventionally but none of them solved this issue! At the end the mentioned solution worked for me magically.

    Good luck

    0 讨论(0)
  • 2020-12-13 12:07

    This is generally called Disable Squiggly or Wavy lines in Visual Studio.

    How you will do in Visual studio 2013?

    TOOLS -> Options... -> Text Editor -> C/C++ -> Advanced -> Disable Squiggles: True/False (Under IntelliSense) -> Press OK

    0 讨论(0)
  • 2020-12-13 12:09

    I know its an old question, and with various solutions, but I have fixed it in different way. I'm working with Unity3D on my C# code using VS2017, when suddenly VS decides to stop underlining error while im typing. However, if I close the file tab and reopen, it suddenly undelines the error.

    For example:

    class A { 
    public int x; 
    s;
    }
    

    should obvsiouly give an error for that lonely 's' symbol. But, VS doesn't underline it until I close and reopen this file tab.

    Solution: Copied the entire Unity Project folder (which is like a regular VS Solution folder basically) and worked with the new folder, which issue was gone there.

    0 讨论(0)
  • 2020-12-13 12:21

    About possible causes.

    For VS 2012 and 2013 if you have more than one instance of Visual Studio on different machines binded to one "live" account and have installed ReSharper on one of them, it disables the native IntelliSense and error underlines (to replace by it's own rules) that will be synchronised through your account to another machine without ReSharper.

    0 讨论(0)
  • 2020-12-13 12:24

    I had the same issue with 2017. There was a 'disable intelisense' option, make sure that is set to false.

    0 讨论(0)
  • 2020-12-13 12:28

    Have you checked ToolsOptions...Text EditorC#AdvancedUnderline errors in the editor?

    I usually like to reset my settings after messing around with plugins, as they tend to mess with settings: ToolsImport and Export Settings...Reset all settings.

    0 讨论(0)
提交回复
热议问题