1, themes,

Here we introduce another powerful search navigation feature of Pycharm. Assume that you want to know where a particular class or method is working in the project, i.e. find all its Leads. This will be a very large and cumbersome project, but Pycharm will help us do it here.

2. Preparation

Use the Animals module from the last blog post.

3. Search all references Left

Suppose we want to find all the environments where the Mammalia class is used, and then jump to one of them. Position the cursor on the Class declaration, press Alt+F7, display the Lead lead of the current class in the Find Tool Window:

After selecting a reference, press Enter and Pycharm opens the relevant file:

By the way, you can do this with the shortcut menu, for example, right click on Mammalia and watch the pop-up shortcut menu:

In this way you can find all Titanate of a symbol in default Settings.

4. Other query methods

Processing Search Lead, Pycharm Several other searches are provided with similar operations for the same purpose, see the main menu (Edit → Find) :

Some of these actions have been formulated related shortcuts, which will be described in detail next.

5. Change the search mode to find Lead through the dialog box

Place the input cursor over the symbol declaration, such as the function name feeds, and press Ctrl+Alt+Shift+F7 to bring up the dialog box in which you can change the search options. For example, if you want to search within the currently open file and display the search results in a new edit box:

Click the Find button: Pycharm displays the feeds search results through a new edit TAB. Pycharm opens the file by double-clicking (or using arrow keys to select and Enter) :

6. Show Performing in list form

In some cases it is not very convenient to view the search results through the search window. Pycharm allows the search results to be returned in the form of pop-up lists. For example, we want to find the environment where the Eutherian class is used:

Left cursor on class declaration, press Ctrl+Alt+F7 (or use Edit→Find→Show Left menu command) :

Pycharm directs you to the relevant file if you select the item (for example, the Cat class) using arrow keys and press Enter.

Now back to the pop-up list, if you want to revert to the previous Find Tool Window mode, just click.

Finally, if you are not satisfied with the current search mode, click the button to open the Settings dialog box:

7. View Left in the current file

More simply, simply press Ctrl+Shift+F7, or use Edit→Find→Highlight Left main menu command, problem resolved:

As you can see, each Lead in the right slot corresponds to a mark, Pycharm gives a brief cue statement when hovering the mouse pointer over the lead. Click these marks to achieve a switch between different Titanates.

Source: CSDN Blog

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