Click here to Skip to main content
Click here to Skip to main content

Tagged as

Inactive code block doesn't lose color - it would be color faded

, 23 Apr 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Unlike previous version of Visual Studio (2005, 2008), which used to display inactive code block in grayed mode, the new version - VS 2010 - would display them in faded down color (core colors will be preserved).For example:#ifdef _DEBUGvoid CClass::AssertValid(){ ASSERT(this); ...
Unlike previous version of Visual Studio (2005, 2008), which used to display inactive code block in grayed mode, the new version - VS 2010 - would display them in faded down color (core colors will be preserved).
 
For example:
#ifdef _DEBUG
void CClass::AssertValid()
{ 
   ASSERT(this);
   // Some code
}
#endif
Will be displayed in same color, but with color intensity down - if _DEBUG is not defined.
 
Obviously, it is applicable for all languages that have conditional compilation thing.
 
Try yourself!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Ajay Vijayvargiya
Software Developer (Senior)
India India
Started programming with GwBasic back in 1996 (Those lovely days!). Found the hidden talent!
 
Touched COBOL and Quick Basic for a while.
 
Finally learned C and C++ entirely on my own, and fell in love with C++, still in love! Began with Turbo C 2.0/3.0, then to VC6 for 4 years! Finally on VC2008/2010.
 
I enjoy programming, mostly the system programming, but the UI is always on top of MFC! Quite experienced on other environments and platforms, but I prefer Visual C++. Zeal to learn, and to share!

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 23 Apr 2010
Article Copyright 2010 by Ajay Vijayvargiya
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid