In Microsoft Visual Studio there is a highly useful feature called "Find all references" (which works basically like the opposite of the "Go To Definition" feature), which I miss in Spyder a lot. It just shows every single line throughout all the files of a project, where a definition of something (variable, constant, function, etc.) is being used.
It has already been mentioned here and here, but it looks like no issue has been created for that so far.
Good idea! We're planning to improve our projects support in Spyder 3.3 (to be released by the end of the summer) and this would be a great addition to that effort :-)
@andfoy, I think we could use the improvements you've been working on for Find in files to implement this.
So the idea would be to add context-menu action for this, then use Jedi or a regexp to find all uses of foo(bar)
for methods, or Foo(bar)
for classes, and finally show the result in Find in files.
And the idea is to make this work for the current project or directory, depending on if a project is active or not, respectively :-)
@ccordoba12 I am 馃憥 cause this would be adding a python specific behavior to a plugin that (maybe the only one!) that is python agnostic
The idea is to add this to the Editor, not to Find in files. Find in files will be used only to display the result.
ok ;-)
Any update on this? Would be great to have a "find all references" feature to help with refactoring.
I am also interested in this feature.
@andfoy any updates/ideas on this work :-) ?
This is work for Spyder 5.
This feature is indeed a must-have for any serious IDE.
Most helpful comment
I am also interested in this feature.