Nobodo
Tomato Guru
126 Posts |
Posted - Jun 06 2011 : 10:23:14 AM
|
I use the 'highlight references to symbol under cursor' all the time, it is extremely useful.
However, it could be a bit more useful.
Typically, I will click on a variable, and then I can see all the places where the variable is read from (one color) or written to (another color) with just a glance. That is EXTREMELY useful.
However, in the cases where a variable is modified by an 'out' or a 'ref' modifier, the colors are deceptive and can easily make you miss places where a variable is changed.
Here is an example. The variable 'agisNumber' is modified by the call to TryParse, but there is no indication that this is a place where the variable is modified. This is a simple example, but when using the highlight references feature in real code to quickly find all places where a var is modified this will trip you up.
|
Edited by - Nobodo on Jun 06 2011 10:25:47 AM |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Jun 06 2011 : 5:38:13 PM
|
We are considering using a different color where a value might be modified (references) and where it is modified based on method signature:
case=22595
case=9955
Thank you for your feedback, I have updated the appropriate case with C# example. |
Edited by - accord on Jun 06 2011 5:41:09 PM |
|
|