Intellisence in VS2010

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
 
J

Jeff Johnson

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?
 
A

Anders Eriksson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top