From the course: Practical GitHub Code Search
GitHub code search - GitHub Tutorial
From the course: Practical GitHub Code Search
GitHub code search
- [Instructor] GitHub Code Search is a featuring GitHub that lets you find the code you're looking for faster and more efficiently. You can find more information on this website which is an overview of the features available through Code Search. With it, you can quickly search through your own code, your team's code, or billions of lines of public code. It was written from scratch in Rust and uses modern approaches like charting and delta and coding to allow you to search through terabytes of data and billions of lines of code in milliseconds. You can learn more about the technology behind the improvements on this blog post right here. Let's talk features. You can use regular expressions or bullion operators like and or or, and there's also tons of keyboard shortcuts to help you search faster. Once you start searching, you'll get suggestions throughout the entire interface as well as added completions that suggest what you should do. There is an advanced and intuitive syntax that helps you build and save your searches so you can retrieve similar results later. And it's not just a search engine. There is a new code view that lets you interact with the results better with a sidebar that also shows you definitions of the code and a file browser that's more familiar to what you're used to in your IDE. As of this video, it's not on by default on GitHub. It's available through a public beta which you can sign up by going to github.com. Now, you toggle this feature by going to the feature preview section and look for the new code search and code view. So we'll click on this link right here which is going to take us to github.com and then look up your profile right here. Notice there is a section called feature preview and then here you're going to find hopefully a lot of different things that you can turn on and off and one of them is this new code search and code view. You can enable it or disable it depending on which version of the Code Search you want to use. There are some differences between the old and the new, and there are right now still some instances where you may want to toggle this on and off. You can also access it through a special URL at github.com/search.