Skip to main content

About GitHub Code Search (beta)

You can search, navigate and understand code across GitHub with the new code search (beta).

Note: The new code search and code view are in limited public beta. To join the waitlist for access, visit

For more information on the new code view, see "Navigating files with the new code view (beta)."

About the new code search (beta)

The new code search (beta) lets you rapidly search, navigate and understand your code, your team's code, and the code of the open source community, all from This search engine is designed to be scalable, code-aware, and support searching code across GitHub using regular expressions, boolean operations, specialized qualifiers, and symbol search. For more information on the syntax of the new code search (beta), see "Understanding GitHub Code Search (beta) syntax."

On top of the new code search engine, the code search (beta) includes new features in the search interface on, such as suggestions, completions, and the ability to save your searches. The new search interface allows you to more quickly and easily find what you are looking for. For more information, see "Using GitHub Code Search (beta)."

Note that the syntax and qualifiers for searching for non-code content, such as issues, users, and discussions, work the same as before. For more information on non-code search, see "About searching on GitHub" and "Searching on GitHub."

The new code search (beta) is tightly integrated with a redesigned code view (beta) on For more information on the new code view, see "Navigating files with the new code view (beta)."

To get access to the new code search (beta), along with the new code view, you can sign up for the waitlist.

Enabling and disabling the new code search and code view (beta)

You will receive an email when you are accepted from the waitlist to join the beta. Once given access, the new code search and code view beta will be automatically enabled on your account.

You can disable or enable the beta on anytime. Note that this setting applies to both the code search and the code view.

  1. In the upper-right corner of any page, click your profile photo, then click Feature preview. Feature preview button
  2. To the right of "New Code Search and Code View (Beta)", click Enable or Disable.


We have indexed many public repositories for the new code search (beta), and continue to index more. Additionally, the private repositories of GitHub users in the beta are indexed and searchable by beta participants that already have access to those private repositories on However, very large repositories may not be indexed at this time, and not all code is indexed.

The current limitations on indexed code are:

  • Vendored and generated code is excluded (as determined by Enry)
  • Empty files and files over 350 KiB are excluded
  • Only UTF-8 encoded files are included
  • Very large repositories may not be indexed

We currently only support searching for code on the default branch of a repository.

Results for any search with the new code search (beta) are restricted to 100 results (10 pages). Sorting is not supported for code search results at this time. This limitation only applies to searching code with the new code search (beta) and does not apply to other types of searches.

The new code search (beta) supports searching for symbol definitions in code, such as function or class definitions, using the symbol: qualifier. However, note that the symbol: qualifier only searches for definitions and not references, and not all symbol types or languages are fully supported yet. For a list of what languages are supported, see "Symbol qualifier."

Feedback and support

You can view and share feedback about the new code search (beta) in our discussion forum.