How to let PyCharm automatically find and import dependency?

For example, if I am writing:"start")


Where 'Agent' has not been imported yet, currently I have to remember where Agent is from and then manually import it. Is it possible that PyCharm automatically find Agent and import the library if desired?


1 comment
Comment actions Permalink


You can place the caret on "Agent", hit "Alt+enter", and select "import this". Not sure how it will work with custom modules, but it works perfectly with installed packages.


Please sign in to leave a comment.