Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 4

Search for code containing string

By default, it looks like the GitHub search matches only whole-words. So if I search for `roo`, code containing `kangaroo` won't show up. Is there a way for search include any code containing the string, whether they're whole words or not?

3 Replies
Message 2 of 4

Re: Search for code containing string

Hi @flow2k,


At this time, we don't support substring search. That said, we're always working to improve GitHub, and we consider every suggestion we receive. I've logged your feature request in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.


Please let me know if you have any other questions.



Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 3
Message 3 of 4

Re: Search for code containing string

Thanks nadiajoyce! It would be nice for the community to be able track the feature, but I guess that's for another day. 

Ground Controller Lvl 1
Message 4 of 4

Re: Search for code containing string

Please, please add substring search. It's vital to negotiating repos of even moderate size and/or number.