Navigating code on GitHub

You can understand the relationships within and across repositories by navigating code directly in GitHub.

Jumping to the definition of a function or method

Note: The jump to definition feature is in beta and subject to change. The feature is enabled now for a limited number of users. We'll enable jump to definition for every user over time.

For a subset of public repositories, you can jump to a function or method's definition within the same repository by clicking the function or method call in a file.

Jump-to-definition link

Jump to definition uses the open source library semantic. The following languages are supported:

Tip: Jump to definition works for active branches. If the feature is enabled for you but you don't see links to the definitions of functions and methods, push to the branch and try again.

Ask a human

Can't find what you're looking for?

Contact us