https://github.blog/2022-11-15-a-better-way-to-search-navigate-and-understand-code-on-github/ / Blog * Engineering * Product * Security * Open Source * Enterprise * Changelog * Community * Education * Company * Policy Free trial Contact sales Search by Keyword [ ] Search * Product A better way to search, navigate, and understand code on GitHub Reading code is a hugely important task for developers. That's why we built GitHub's new code search--to help developers search, navigate, and understand code written by them, their team, and the world. A better way to search, navigate, and understand code on GitHub Author Ryan J. SalvaRyan J. Salva November 15, 2022 * * * Our mission at GitHub is to build tools to make developers happier and more productive. Great tools eliminate burdens and allow developers to focus on what they do best: building things. But while building, developers don't just write code--they browse, navigate, sift, and sort through it. Reading code is a hugely important task for developers, whether they are planning and implementing features, investigating bugs or reviewing code. That's why we built GitHub's new code search--to help developers search, navigate, and understand code written by them, their team, and the world. Our new code search index includes over 10 billion unique documents across 30+ million repositories (and growing). From a technology preview to GitHub.com Since we launched the code search technology preview, over 100,000 developers joined the waitlist and gained access, giving us tons of valuable feedback. Developers loved the ability to instantly find relevant code, use our powerful code navigation, and dig through large and complex codebases. And for many developers, GitHub code search became an essential part of their workflow--something they depend on every day to find the answers they need to do their job. We heard your feedback about wanting this for GitHub.com, so at GitHub Universe we unveiled the new code search and navigation capabilities we've been working on for you. Find exactly what you're looking for This beta introduces an all-new search interface in GitHub.com, with suggestions, completions, and the ability to filter results by a wide variety of dimensions (for example, repository, language, symbol, and owner). Backed by our new code search engine, you can search for code using powerful qualifiers, boolean expressions, and even regular expressions. We've developed our new code search engine completely from scratch, with a focus on performance. Most search queries find results in just a few hundred milliseconds--so you can quickly search, iterate, and refine your query to find exactly what you're looking for. screenshot of search results zoomed in with the query time in ms highlighted Our new code search engine actually understands code--and brings you the most relevant results first, so you can find answers buried in your codebase. Browse, navigate, and dig deeper Clicking on a search result is just the beginning of the journey. Developers need to search, browse, and navigate code, find definitions and references, and trace the path of the code through their codebases. That's why, as part of this beta, we've completely redesigned the code view, tightly integrating browsing, search, and code navigation. Screenshot of the redesigned code view in a GitHub repository, which tightly integrates browsing, search, and code navigation. We've also added a file tree to the left side of the code view, which puts code in context, showing where it fits into the rest of the repository, and enables developers to easily browse files across their repository. Side-by-screenshots showing the old code view and the new code view, which includes a file tree on the lefthand side. See code search in action Join the waitlist and help us make search and code navigation on GitHub even better! Find out more: * https://github.com/features/code-search * https://github.blog/changelog/ 2022-11-09-introducing-an-all-new-code-search-and-code-browsing-experience / Tags: * code search, * code view, * Core productivity The GitHub Insider Newsletter Get the best of GitHub. Once a month. Directly to your inbox. Subscribe More on code search A brief history of code search at GitHub A brief history of code search at GitHub This blog post tells the story of why we built a new search engine optimized for code. Pavel Avgustinov Improving GitHub code search Today, we are rolling out a technology preview for GitHub code search, the next iteration for search, discovery, and navigation on GitHub. Pavel Avgustinov Related posts The power of GitHub in the palm of your hand Product The power of GitHub in the palm of your hand GitHub Mobile helps keep work going while you're going. Untether yourself from your office. Candy Ho The journey of your work has never been clearer Product The journey of your work has never been clearer In July, we launched the general availability of GitHub Projects, and now we are excited to bring you even more features designed to make it easier to plan and track in the same place you build! Mario Rodriguez Introducing GitHub Actions Importer Enterprise Introducing GitHub Actions Importer GitHub Actions Importer helps you forecast, plan, and facilitate migrations from your current CI/CD tool to GitHub Actions. Ethan Dennis Explore more from GitHub Product Product Updates on GitHub products and features, hot off the press. Learn more GitHub Universe '22 Dev GitHub Universe '22 The global developer event for cloud, security, community, and AI Register now GitHub Actions GitHub Actions Native CI/CD alongside code hosted in GitHub. Learn more Work at GitHub! Work at GitHub! Check out our current job openings. Learn more Subscribe to The GitHub Insider A newsletter for developers covering techniques, technical guides, and the latest product innovations coming from GitHub. [ ] Subscribe Product * Features * Security * Enterprise * Customer Stories * Pricing * Resources Platform * Developer API * Partners * Atom * Electron * GitHub Desktop Support * Docs * Community Forum * Training * Status * Contact Company * About * Blog * Careers * Press * Shop * GitHub on Twitter * GitHub on Facebook * GitHub on YouTube * GitHub on Twitch * GitHub on TikTok * GitHub on LinkedIn * GitHub's organization on GitHub * (c) 2022 GitHub, Inc. * Terms * Privacy