Edit Show Excluded Code 2080 NEW

Top  Previous  Next

This option turns on/off marking of excluded code.

Excluded code is code that is not compiled as part of the project because conditional compilation parameters exclude the code.

Excluded code is shown in Italic and gray.

 

For example when using an XMEGA processor, the _XMEGA constant will be set to 1. When the option is turned off, it will show normal like :

 
#if _xmega
  print "XMEGA"
#else
  print "NORMAL"
#endif
 
When then option is turned on, the editor will show it like :

 

#if _xmega
  print "XMEGA"
#else
  print "NORMAL"
#endif
 

When you have a lot of conditional code it is hard to see which code is executed. When you turn the option on, it is much easier to see.

See this example:

 

edit_show_excluded_code

 
 
 

 

 

See Also

#IF, #ELSEIF . #ELSE , Show Dead Code