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.
Since I logically assume you are programming in python using Pycharm as your IDE, you'll just do the stand “import module” or “from module import blah” PyCharm is simply an ide which uses whatever installation of Python you have - including any virtual environments you might have created.
no - PyCharm is an IDE - Integrated Development Environment; essentially it is fully featured application comprising of file editors, project explorers, debuggers and much else. It’s intention is assist the developer in writing code.
you have a typo. You have installed the library but you have PyCharm configured to the wrong environment /interpreter - libraries are per interpreter so if you have virtual environments you have to install the library into the right one.
It’s installed in your virtualenv, you just need to import it. So away you go, up to the top of the file, looking for the right place to manually import it. Instead, let PyCharm do it for you. Start typing part of requests and type Ctrl-Space-Space.
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
- Click the desired symbol in the editor, or in the Structure view.
- On the main menu, choose Edit | Find | Find Usages in File, or press Ctrl+F7. The encountered usage is highlighted in the editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With