简体   繁体   English

导航到PyCharm中的特定模块

[英]Navigate to a specific module in PyCharm

I use PyCharm as my IDE for working with Django. 我使用PyCharm作为使用Django的IDE。 So far, it's navigation shortcuts have proven very useful. 到目前为止,事实证明,它的导航快捷键非常有用。 I can go to a specific (project) file with Ctrl+Shift+N , I can go to any class definition with Ctrl+N and can go to any symbol with Ctrl+Shift+Alt+N . 我可以使用Ctrl+Shift+N转到特定的(项目)文件,可以使用Ctrl+N转到任何类定义,并且可以使用Ctrl+Shift+Alt+N转到任何符号。

This is great, but lately I've seen that it would be very useful too to have a shortcut to move to a specific external (or project) module. 这很棒,但是最近我看到,拥有捷径可以转移到特定的外部(或项目)模块也非常有用。

Is there any shortcut where I can pass for example: django.contrib and show the modules for inside django.contrib package or base64 and show me the modules match for base64 , just as easy as I can go to a specific, symbol, class, file? 是否有任何快捷方式可以传递给我,例如: django.contrib并显示django.contrib包或base64内部的模块,并向我显示模块与base64匹配,就像我可以轻松访问特定的,符号,类,文件?

Thanks in advance 提前致谢

I feel your problem. 我感觉到你的问题。 All you have to do is Ctrl + CLICK on the definition. 您所要做的就是在定义上按Ctrl +单击。 Please note, however that this does not provide the actual files. 请注意,但是这并不提供实际的文件。 What I mean by this is that it does not re-direct you to the actual function, but rather a skeleton of the function. 我的意思是,它不会将您重定向到实际功能,而是功能的框架。

If you want to go to the actual function, you will need to go it it my clicking on external libraries on your sidebar and do a search. 如果要转到实际功能,则需要单击侧边栏上的外部库并进行搜索。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM