[英]How do I filter by file type on Sourcegraph?
我想进行Sourcegraph搜索,并仅显示具有特定扩展名的文件的结果。
You can use the file:
token to filter results by filename regex. 您可以使用
file:
令牌按文件名正则表达式过滤结果。 For example, file:\\.go$
would limit results to files ending in ".go" . 例如,
file:\\.go$
将结果限制为以“ .go”结尾的文件 。
The full search query syntax is documented here: https://about.sourcegraph.com/docs/search/query-syntax 完整的搜索查询语法记录在这里: https : //about.sourcegraph.com/docs/search/query-syntax
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.