This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

"go to reference" doesn't make any sense

If you look at any IDE except for uVision, they'll give you a "go to definition" menu item, which takes you to the place where you defined a variable.

But then they'll give you a "find all references" menu item, or some such, which finds all references to the variable, or finds each one in order.

For example:

int foo = 1;

int main()
{ foo = 2; printf("hello world"); printf("foo = %d", foo);
}

"go to definition" would go to the line "int foo = 1"
Fine. Uvision also does this.

But "find all references" would take you to "foo = 2"
and "printf("foo = %d", foo);

In other words, there is exactly one definition of each variable, but any number of references.

But the uVison "go to reference" only seems to go to the first reference. In this instance it would take you to "foo = 2" but there would be no way to find all the other uses of the variable.

Am I missing something. This functionality seems so fundamental, and yet missing in uVision.

0