GitHub Improves Code Search
Written by Kay Ewbank   
Monday, 13 December 2021

GitHub has announced a preview version of an improved way to search code on the platform. The GitHub team says the preview provides an early look at the next step in making GitHub easier to use, specifically helping developers explore and discover code, all while staying focused.

In more practical terms, the search facility is designed to make it easier for a developer to find what they’re looking for, with smart ranking and an index that is optimized for code.

 

githubdeklogo

 

Pavel Avgustinov of the GitHub team said in a blog post that at the moment, the technology preview is located in a separate website and has to be enabled for your account. The team says that once they’re happy with the feedback and are ready for wider adoption, they plan to integrate it into the main github.com experience.

The search index covers more than five million of the most popular public repositories, as well as your private repositories. The code search website says the new facility offers "Way more than grep", with the ability to search across multiple repositories, an index that is always up to date, and that it understands your code, and puts the most relevant results first.

The search facility lets you search for an exact string of code, with support for substring matches and special characters. You can also use regular expressions (enclosed in `/` separators).

If you want to limit the locations to search, you can add scope to your searches with `org:` or `repo:` qualifiers, and the search tool will provide auto-completion suggestions in the search box.

Along with the main search options, there's also a directory tree view, symbol information for the active scope, jump-to-definition, and select-to-search.

The announcement of the code search facility follows the release of Copilot and Codespaces, and according Avgustinov is another example of how GitHub continues to evolve to improve the developer experience.

 

githubdeklogo

More Information

GitHub Code Search Website

Related Articles

GitHub Desktop Adds Squashing

GitHub Desktop 2.0 Introduces Stashing and Rebasing

GitHub Copilot Your Programming Pal

GitHub Introduces Super Linter

GitHub Strengthens Team Working

New From GitHub Universe

GitHub Launches Actions

Microsoft Buys GitHub - Get Ready For a Bigger Devil

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Eclipse Releases Theia IDE
27/06/2024

The Eclipse Foundation has released Theia IDE, which they say is created for developers seeking a modern, open, and flexible tool for their coding pursuits. The IDE is based on the Theia Platform, whi [ ... ]



APISEC Conference Sessions Now Available Online
12/07/2024

The talks from APISEC|CON, the largest event dedicated to API security, are now available up on Youtube, for free. The virtual event covered AI and LLM security, defending APIs, API sprawl, gover [ ... ]


More News

kotlin book

 

Comments




or email your comment to: comments@i-programmer.info