1

Is there an option in the IDE (or a free plug-in/tool) to mark local variables in a different color/font in contrast to global variables? If NO, how do you handle this? By var-name?

Wolfgang Bures
  • 509
  • 4
  • 12

1 Answers1

1

There is no such option in the IDE and I'm not aware of any IDE plug-in that does it.

I use a naming convention (a prefix) to distinguish between various variable scopes:

G       for Global
F       for Field (variable in a class)
A       for Argument
Nothing for local variable

There are numerous other way to do it. Each developer has his own rules.

fpiette
  • 11,983
  • 1
  • 24
  • 46