utapyngo
utapyngo

Reputation: 7146

How to go to import in PyCharm?

Is there a shortcut in PyCharm to go to the place where a symbol is imported in current module?

I tried "Go To Declaration" but it goes to another module.

Upvotes: 13

Views: 2183

Answers (1)

utapyngo
utapyngo

Reputation: 7146

Here is the answer from JetBrains support:

Try to use a shortcut for "Find Usages in current file": https://www.jetbrains.com/help/pycharm/finding-usages-in-the-current-file.html


To find usages of a symbol in the current file

  1. Click the desired symbol in the editor, or in the Structure view.
  2. On the main menu, choose Edit | Find | Find Usages in File, or press Ctrl+F7. The encountered usage is highlighted in the editor.

Upvotes: 3

Related Questions