I've gotten into the habit of delimiting symbols in comments using backticks (`), because that's how one does it in Markdown (Stack Overflow).
I had some code like this:
List<IBorder> borders = GetBordersToValidate(allBorders);
/* ... */
// Connectivity is the function f(x, y) => IsConnected(x, y), where x and y are border indices from `borders`
bool[,] connectivity = new bool[borders.Count, borders.Count];
Later, "borders" was renamed to "bordersToValidate", giving this:
List<IBorder> bordersToValidate = GetBordersToValidate(allBorders);
/* ... */
// Connectivity is the function f(x, y) => IsConnected(x, y), where x and y are border indices from `borders`
bool[,] connectivity = new bool[bordersToValidate.Count, bordersToValidate.Count];
Now the comment doesn't make sense.
It would be neat if there was a switch one could turn on that would treat the items in backticks as symbols, and underline them as misspellings if no such symbol exists. (This could possibly be extended to the hungarian, underlined_symbol, and pascalCase detection already in the spell checker)
(I know this probably won't happen and is really really minor but figured I'd throw it out there...)
Billy3