Skip to content

Feature Request: Filter Search Results by File Type in Code Search #142094

Closed Answered by look
ANcpLua asked this question in Code Search and Navigation
Discussion options

You must be logged in to vote

@ANcpLua this is supported. There are a couple of different ways.

First, you can use the language: qualifier to restrict your search to a language. For example, repo:my/repo language:JavaScript.

Second, you can use the path: qualifier to restrict to file extensions. For example, repo:my/repo path:*.html.erb. This qualifier supports globs (as shown) and regular expressions.

For more details, please review the code search syntax documentation.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ANcpLua
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by look
Comment options

You must be logged in to vote
1 reply
@look
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Search and Navigation Search, navigate, and understand code on GitHub Product Feedback
3 participants