GitHub:是否可以搜索内部代码并按星号排序 [英] GitHub : Is it possible to search inside code and sort by stars
问题描述
我不确定这是否是解决此问题的合适论坛.在GitHub上看到了很多与搜索相关的问答,因此在此处发布. 例如. 在Github项目中搜索代码
I'm not sure if this is the right forum for this question. Saw quite a few Q&A related to search on GitHub, hence posting here. E.g. Search code inside a Github project
GitHub高级搜索允许使用stars:>100
之类的词,但查询词仅限于存储库名称.是否可以在文件(代码)和内部搜索术语?按星星排序?我的目的是查看哪些流行的回购协议在其代码中使用了特定的关键字.如果GitHub的Repositories
高级搜索选项也适用于Code
,这将非常有用.
GitHub advanced search allows terms like stars:>100
but the query term is restricted to repository names only. Is it possible to search for a term inside the files (code) & sort by stars? My aim is to see which popular repos are using a particular keyword in their code. It would be very useful if GitHub's advanced search options for Repositories
worked for Code
also.
推荐答案
在内部代码中搜索时,不可能按星号排序.
It is not possible to sort by stars when searching inside code.
来自github.com支持的电子邮件:
From an e-mail from github.com support:
代码搜索不支持按星数排序,但是我肯定会在内部将您的+1添加到该建议中!我无法确定是否或何时进行更改,但是您的反馈意见在正确的手里.
Code search does not support sorting by number of stars, but I will definitely add your +1 to that suggestion internally! I can't say if or when a change will happen, but your feedback is in the right hands.
这篇关于GitHub:是否可以搜索内部代码并按星号排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!