在文件中查找:搜索 Team Foundation Server 中的所有代码 [英] Find in Files: Search all code in Team Foundation Server
问题描述
有没有办法在 TFS 中搜索每个文件的最新版本以查找特定字符串或正则表达式?这可能是我从 Visual Source Safe 中唯一想念的东西...
Is there a way to search the latest version of every file in TFS for a specific string or regex? This is probably the only thing I miss from Visual Source Safe...
目前我在整个代码库上执行获取最新信息并使用 Windows 搜索,但是这对于 75,000 个文件中超过 1GB 的代码变得非常痛苦.
Currently I perform a Get Latest on the entire codebase and use Windows Search, but this gets quite painful with over 1GB of code in 75,000 files.
编辑:尝试了提到的 powertools,但通配符搜索"选项似乎只搜索文件名而不是内容.
EDIT: Tried the powertools mentioned, but the "Wildcard Search" option appears to only search filenames and not contents.
更新:我们在现有的 MOSS(搜索服务器)安装中实施了自定义搜索选项.
UPDATE: We have implemented a customised search option in an existing MOSS (Search Server) installation.
推荐答案
Team Foundation Server 2015(本地)和 Visual Studio Team Services(云版本)包括对搜索所有代码和工作项的内置支持.
Team Foundation Server 2015 (on-premises) and Visual Studio Team Services (cloud version) include built-in support for searching across all your code and work items.
您可以进行简单的字符串搜索,例如 foo
,布尔运算,例如 foo OR bar
或更复杂的特定于语言的操作,例如 class:WebRequest
You can do simple string searches like foo
, boolean operations like foo OR bar
or more complex language-specific things like class:WebRequest
您可以在此处阅读更多相关信息:https://www.visualstudio.com/en-us/docs/search/overview
You can read more about it here: https://www.visualstudio.com/en-us/docs/search/overview
这篇关于在文件中查找:搜索 Team Foundation Server 中的所有代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!