Navigating code on GitHub

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

Note: Code navigation features are in beta and subject to change. These features are enabled for a limited number of users. We'll enable code navigation for every user over time.

Navigating code functions use the open source library semantic. The following languages are supported:

  • Go
  • JavaScript
  • PHP
  • Python
  • Ruby
  • TypeScript

Tip: Code navigation 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.

Jumping to the definition of a function or method

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 tab

Finding all references of a function or method

For a subset of public repositories, you can find all references for a function or method within the same repository by clicking the function or method call in a file, then clicking the References tab.

Find all references tab

Ask a human

Can't find what you're looking for?

Contact us