Intellisence in VS2010

  • Thread starter Thread starter Anders Eriksson
  • Start date Start date
A

Anders Eriksson

In Visual Studio 2010 (yeah I know I'm a bit late...) if I have a
preprocess variable that it's not defined VS will gray the code which is
in the preprocess section.
But if I have this code at the top of the file (before namespace)

#if !DEBUG
#define MYTIMER
#endif

then it doesn't gray #define MYTIMER but MYTIMER is not defined so all
code that is within #if MYTIMER will be grayed.

Anyone know why it's not grayed out?

// Anders
 
In Visual Studio 2010 (yeah I know I'm a bit late...) if I have a
preprocess variable that it's not defined VS will gray the code which is
in the preprocess section.
But if I have this code at the top of the file (before namespace)

#if !DEBUG
#define MYTIMER
#endif

then it doesn't gray #define MYTIMER but MYTIMER is not defined so all
code that is within #if MYTIMER will be grayed.

Anyone know why it's not grayed out?

I can replicate it. Looks like a bug. Functionality is correct, but display
is not.

I'm too lazy to fire up 2012 and see if it's the same there. Anyone?
 
I can replicate it. Looks like a bug. Functionality is correct, but display
is not.

I'm too lazy to fire up 2012 and see if it's the same there. Anyone?
OK, I downloaded VS2012 Express and the bug still exists!

No big deal, but ...

Thanks for replying!

// Anders
 
Back
Top