ctrl +单击 eclipse pydev
我试图使用 Ctrl+click 来跟踪一些 python 代码,但我试图跟踪 classname.run() 但它得到 180 个结果并抱怨..是否有任何插件能够半编译该代码能够找到动态对象类型吗?
Im trying to follow some python code using Ctrl+click, but Im trying to follow a classname.run() but it gets 180 results and complains.. are there any plugins that is able to semi-compile the code to be able to find the dynamic object type?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有完整的示例,不确定,但 PyDev 会进行代码分析以尝试发现实际类型。当它继续显示工作区中的所有匹配项时,这意味着它无法显示它(如果这是一个参数,则通常是这种情况)。
如果您有类名,通常在编辑器中选择类名并执行 CtrlShiftT 是转到类名的最简单方法类(在类中 CtrlO 是查找方法或字段的最简单方法)。
Not sure without the full example, but PyDev does a code-analysis to try to discover the actual type. When it goes on to show all the matches in the workspace, it means that it wasn't able to show it (which is usually the case if that was a parameter).
If you have the class name, usually selecting the class name in the editor and doing a CtrlShiftT is the easiest way to go to the class (and in a class CtrlO is the easiest way to find a method or field).