Home > Technology peripherals > AI > body text

Officially launched, GitHub opens new code search engine to all users

PHPz
Release: 2023-05-12 08:31:05
forward
1396 people have browsed it

In the process of software development, reading and understanding code is a basic task. Whether implementing new features or finding bugs, developers first need to read and understand the code, which takes even more time than writing it. If you can quickly find the contextual code needed for development like a search engine, then the efficiency of software development will be greatly improved.

As the world's largest source code hosting service platform, GitHub released a preview version of the code search engine Code Search in 2021. Afterwards, GitHub made a series of optimization modifications to Code Search, and in Technical details were announced in February this year.

Now, GitHub announces that all users will have access to a new code search engine and code view, designed to allow developers to quickly search, navigate and understand code, ultimately improving work efficiency.

Specifically, GitHub has launched a completely redesigned search interface. The new interface not only provides suggestions and completions, but also intelligently categorizes search results.

Officially launched, GitHub opens new code search engine to all users

This is based on GitHub's new code search engine built from the ground up, which features faster speeds (approx. twice as fast as old code), more powerful (supports substring queries, regular expression searches, and symbol searches), and has the code understanding to put the most relevant results first.

In addition, the R&D team also redesigned GitHub’s code view to tightly integrate search, browsing, and code navigation.

Officially launched, GitHub opens new code search engine to all users

Let’s take a look at the application effect of GitHub after the improvement.

Fixing bugs

Fixing bugs is one of the most common work situations encountered in software development. Before fixing it, developers first need to find where the bug is. A large software or project often has multiple systems or repositories, and without code search, developers would have to clone a bunch of repositories and grep through them. Now with GitHub's code search function, developers can quickly find in a large amount of code:

Officially launched, GitHub opens new code search engine to all users

Officially launched, GitHub opens new code search engine to all users

Officially launched, GitHub opens new code search engine to all users

Find the configuration file

In actual development , project configuration is often a hard restriction. GitHub now offers developers the ability to find configuration files. For example, by searching for YAML configuration files containing the word "memory" in the code, you can view some memory usage:

Officially launched, GitHub opens new code search engine to all users

This query function is crucial for resource planning and allocation in development.

In addition, GitHub has also established some rules to avoid security vulnerabilities, such as prohibiting the use of dangerouslySetInnerHTML to inject dangerous strings into the DOM.

Officially launched, GitHub opens new code search engine to all users

What netizens think

After GitHub’s new code search was officially launched, some netizens praised its functions, saying that this is the most impressive product in the past five years, so good that it is comparable to ChatGPT. .

Officially launched, GitHub opens new code search engine to all users

Others say that GitHub’s code search feature is much more useful than Copilot or any large language model (LLM).

Officially launched, GitHub opens new code search engine to all users

But some netizens said that the previous GitHub search effect was very poor, and they were more accustomed to using git -grep.

Officially launched, GitHub opens new code search engine to all users

It seems that the new GitHub code search needs developers to try it themselves to know whether it works well or not.

The above is the detailed content of Officially launched, GitHub opens new code search engine to all users. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:51cto.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!