Consider:
01: for (i = 0; i < 5; i++)
02: {
03: for (i = 0; i < 10; i++)
04: {
05: do_something();
06: }
07: }
It would be nice to go to the variable "i" on line 03 and have a deeper-scoped rename of "i" to "j" (for example), so that it doesn't affect all instances of "i" but just those within its deeper scope (from line 03 through 06).
Note: This could be a rename dialog option, such as "deeper scoped only" to change the line-assigned checkboxes.