1. Prepare examples

(1) Create Animals module in project directory (Alt+Insert→Python Package) :

Create a Python File (Alt+Insert→Python File) :

Enter the following code in the fudoscop.py file:

 

In carniore. Py, herbiore. Py, enter the following code:

2. Go to declarations

Position the cursor at the name of the Cat class instance’s feeds () function and press Ctrl+B. Pycharm automatically jumps to the definition of a member of the Mammalia class feeds:

3. Go to quotes

Next place your cursor over the Mammalia class name and look for all references to it. Press Ctrl+Alt+B to see a list of references to the Mammalia class:

Select the reference you want to view (for example, select Cow here), press Enter and Pycharm will direct you to the reference location:

If you select a reference in another file, such as Carnivore, Pycharm opens it in a separate edit TAB.

4. Notice the side thumbtack icon

We’ve seen similar pushpins before, such as when viewing a quick document (Ctrl+Q), and if you click the icon, the entire popup will be fixed. In this case, it means that the encountered reference has been added to the Find Tool Window for display.

5. Navigation function of left slot icon

Finally, if we look at the left slot of the window, there are a lot of ICONS with pointing arrows, which means?

If you hover your mouse pointer over the icon, Pycharm will show you its subclasses or overloaded methods (down arrow) and superclasses (up arrow) :

When you click on the icon, Pycharm will list its subclasses or overload methods (if any) :

Pycharm then jumps to the selected item and places the cursor on the corresponding declaration section. If there is only one subclass, superclass, or overloaded function, jump is performed by default:

This post is from SDK Community (www.sdk.cn/).