I am on OSX 14.1 and using Xcode 15.2 with a C++ code. In the sample code below, the variable my_variable
is a local variable declared in method my_method
void MyClass::my_method(void){
double my_variable;
my_variable = 1.0;
}
I want Xcode to find for me all occurrences of my_variable
in my_method
, but it does not work: if I right click on my_variable
-> Find -> Find Selected symbol in workspace, nothing happens, see the screenshot attached.
If I do the same for a variable which is the member of MyClass
, then it works, and I see a list of all occurrences of the variable in the code in the left part of the screen.
How may I make it work for local variables such as the one in the sample code?
Thanks 🙂