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


1000 Programmer's Mugs
06/12/2024

It is legend that programmers run on coffee so what better as a festive gift than a new mug with an appropriate slogan? You could boost your favourite programmer's performance by encouraging increased [ ... ]



Highlights Of The Europe 2024 PostgreSQL Conference
22/11/2024

This year's premium conference for PostgreSQL took place in Athens, Greece between October 22-25. The nice Athenian weather and cultural aspect aside, the conference was a big hit too.


More News

espbook

 

Comments




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