What is the [shortcut/other way] for go to definition in Eclipse+Pydev

前端 未结 5 1848
感情败类
感情败类 2021-02-01 03:53

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 the

相关标签:
5条回答
  • 2021-02-01 04:00

    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.

    0 讨论(0)
  • 2021-02-01 04:00

    Actually it does not work when you set MSVC scheme. In eclipse mars go to Windows->preferences then go to General->keys (or in type filter text type keys) then in Keys in type filter text type definition. Then you shall see in command below Python Go To Definition. In Binding text edit you can then set any shortcut you want.

    0 讨论(0)
  • 2021-02-01 04:03

    For Aptana Pydev, you have "Go To Definition": F3
    (Andrew Falanga comments below that Alt+ allows you to return to the point you left)

    The 'go to definition' actions enables you to get to a given definition.

    • It works well on 'self' tokens
    • It can work on methods / attributes from parameters (as the image below shows).

    goto definition

    0 讨论(0)
  • 2021-02-01 04:07

    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.

    0 讨论(0)
  • 2021-02-01 04:08

    Assuming you mean "go to where a method/class/variable" is defined, in Eclipse, it is F3

    0 讨论(0)
提交回复
热议问题