#552 Add ability to search for usages


I switch back and forth between Java and Python quite frequently in eclipse. One thing I miss about browsing through code in PyDev is the ability to search for usages of a particular variable or class or method or whatever.

I realize this is difficult to accomplish but I have used PyCharm which has this feature and am pleased with their implementation and just wish PyDev had it too.

It would be nice to do something like search for variable read or write and also search for references or declarations (I guess declarations isn't as big of a deal since you can already go to the definition directly). This would really help as you browse and navigate through the code, especially if you are using a new library and want to learn how to use it and get used to it.



  • Fabio Zadrozny

    Fabio Zadrozny - 2011-08-27

    Select the variable you want and do Ctrl+Shift+G

    I'm still working to improve it (so, I'm leaving the bug open until I find it's a 100%), but it should be pretty usable already (note that it will only search in your projects, not in the interpreter).

  • Brandon

    Brandon - 2011-08-27

    WOW! Didn't even know about that shortcut. Works pretty good too. Thanks...not sure exactly what you still have to do but yeah, an option to search through the interpreter or site package libraries could be useful...

    I also noticed that when I did hit that shortcut on a standard library class I got a null pointer exception...