1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/content/github/managing-files-in-a-repository/navigating-code-on-github.md
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

42 lines
1.4 KiB
Markdown

---
title: Navigating code on GitHub
intro: 'You can understand the relationships within and across repositories by navigating code directly in {{ site.data.variables.product.product_name }}.'
redirect_from:
- /articles/navigating-code-on-github
versions:
free-pro-team: '*'
---
### About navigating code on {{ site.data.variables.product.prodname_dotcom }}
Navigating code functions use the open source library [`semantic`](https://github.com/github/semantic). The following languages are supported:
- CodeQL
- Go
- Java
- JavaScript
- PHP
- Python
- Ruby
- TypeScript
{% note %}
**Note**: 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.
{% endnote %}
### 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](/assets/images/help/repository/jump-to-definition-tab.png)
### 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](/assets/images/help/repository/find-all-references-tab.png)
### Further reading
- "[Searching code](/github/searching-for-information-on-github/searching-code)"