在 Eclipse+Pydev 中转到定义的[快捷方式/其他方式]是什么
我曾经使用 WingIde
,其中我经常使用的快捷方式(f4,默认)是 Goto 定义,它将打开定义文件,并将我带到它。 eclipse+pydev 有类似的快捷方式吗?
I used to use WingIde
, where in a shortcut(f4, default) which I used quite often was Goto definition, which will open the definition file, and take me to it. Is there a similar shortcut for eclipse+pydev?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
对于 Aptana Pydev,您可以“转到定义”:F3
(安德鲁·法兰加 下面的评论 Alt+ ← 允许您返回到离开的位置)
For Aptana Pydev, you have "Go To Definition": F3
(Andrew Falanga comments below that Alt+← allows you to return to the point you left)
正如其他人回答的那样,F3 是可行的方法,但更进一步,您可能还想看看 ctrl+shift+t 来浏览所有可用的令牌,ctrl+shift+r 来浏览所有文件。
As others answered, F3 is the way to go, but going a bit further, you might also want to take a look at ctrl+shift+t to browse all the tokens available and ctrl+shift+r to browse all the files.
假设您的意思是“转到定义方法/类/变量的位置”,在 Eclipse 中,它是 F3
Assuming you mean "go to where a method/class/variable" is defined, in Eclipse, it is F3
尽管这个问题相当有时间限制,但也许这种更通用的方法将帮助其他人在 Eclipse 中寻找特定的捷径。
帮助 - 按键辅助... 打开所有可用快捷键的列表,按说明按字母顺序排序。 (“开放声明”是此处查找的内容。)
窗口 - 首选项 - 常规 - 按键可让您编辑快捷方式。
Although the question is pretty time-barred, maybe this more general approach will help others looking for specific short-cuts in eclipse.
Help - Key Assist... opens a list of all available short-cuts, alphabetically sorted by description. ("Open Declaration" was the one looked for here.)
Window - Preferences - General - Keys lets you edit the short-cuts.
实际上,当您设置
MSVC schema
时,它不起作用。在日食火星去Windows->首选项
,然后转到常规->按键
(或在类型过滤器文本
中键入按键
)然后在Keys
中的type filter text
中输入definition
。然后您将在Python Go To Definition
下面的command
中看到。在Binding
文本编辑中,您可以设置任何您想要的快捷方式。Actually it does not work when you set
MSVC scheme
. In eclipse mars go toWindows->preferences
then go toGeneral->keys
(or intype filter text
typekeys
) then inKeys
intype filter text
typedefinition
. Then you shall see incommand
belowPython Go To Definition
. InBinding
text edit you can then set any shortcut you want.