Uncategorized

Navigation Code on GitHub

GitHub.com Managing files in a repository Managing files on GitHub Navigating code on GitHub

Navigating code on GitHub

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

In this article

Note: Code navigation features for JavaScript, PHP, and TypeScript are in beta and enabled for a limited number of public and private repositories on GitHub.com. We’ll enable code navigation features for every repository with JavaScript, PHP, and TypeScript over time.

About navigating code on GitHub

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

  • Go
  • JavaScript (beta)
  • PHP (beta)
  • Python
  • Ruby
  • TypeScript (beta)

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

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

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

Further reading

Ask a human

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.