Error highlighting - Visual Studio Express 2010 (C ++)

good use of Visual Studio Express 2010 (C ++) is good, but now unexpectedly error highlighting is turned off when editing any file except main.cpp

I checked my settings, and as far as I can tell, everything is fine - everything is included in IntellSence, etc. Rebooted the machine several times. Reinstall VS completely. They tested it in another project, so I do not think that this is a problem associated with certain problems.

This seems rather strange to me. Can anyone understand what might be happening?

Greetings.

+4
source share
8 answers

Go to the Functions → Text Editor → C / C ++ → Advanced section and check the box “Underline errors in the editor” and “Show live semantic errors”.

+2
source
  • Close Visual Studio.
  • Go to the solution / project directory and delete the .sdf file.
  • Open the solution / project again and it will start parsing the included header files again.
+1
source

I had the same problem and none of the answers posted here helped me.

if your project is under some source control (mine was under ClearCase), this solution may work for you.

You must make sure that .sln, .suo and .vcxproj.user are editable.

Intellisense needs these files to be editable, otherwise it will not work.

Hope this helps someone.

+1
source

Sometimes this happens, I guess, due to some code that the Intellisense compiler chokes on. A trip to Project> Rescan Solution will fix it, at least until next time ...

0
source

I had a problem when the error highlighting occurred in VS2010 from blue in the header file, but the project was compiled and built perfectly. I executed Project-> Rescan and all erroneous hightlights errors (code with underlined red) disappeared.

0
source

Tools-> Options-> Text Editor-> c / C ++ → General-> uncheck the "Word Wrap" (in the settings) May solve the problem. Thanks

0
source

Try deleting this file, which may have been accidentally added to c / C ++ code:

# include <dbdao.h>

hope this helps!

0
source

I had 2 projects in one solution, and intellisence worked in only one project. Intelligence began to work only after I commented on a specific line of code in my project. it was a complicated get function.

0
source

Source: https://habr.com/ru/post/1345454/


All Articles