Is there a free addin or resharper plugin that will let me see the actual value of a constant value when you hover over a reference to it ?
Since the compiler forces const fields or properties to be a concrete compile-time constant, it is only logical that it show it straight in the tooltip.
eg:
const int DISPLAY_MODE_SIMPLE = 0x02; const int DISPLAY_MODE_ADVANCED = 0x04; void DoSomething(int displayMode) { if (displayMode == DISPLAY_MODE_SIMPLE) { ShowSimpleDialog(); } }
I want to hover over DISPLAY_MODE_SIMPLE and see in the tooltip: int MyType.DISPLAY_MODE_SIMPLE = 0x02
I am dealing with a lot of code lately that doesn't use Enums (Java converted with IKVMC), and constantly having to go back and forth when examining old code using it is very irritating.
Neither ReSharper 5 nor Visual Studio 2010 seem to have this feature.
Edit: I am not talking about the debugger. It works with that of course.