Find in Files: Search all code in Team Foundation Server

后端 未结 12 2232
情深已故
情深已故 2020-11-28 22:37

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...

12条回答
  •  甜味超标
    2020-11-28 22:57

    There is currently no way to do this out of the box, but there is a User Voice suggestion for adding it: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2037649-implement-indexed-full-text-search-of-work-items

    While I doubt it is as simple as flipping a switch, if everyone that has viewed this question voted for it, MS would probably implement something.

    Update: Just read Brian Harry's blog, which shows this request as being on their radar, and the Online version of Visual Studio has limited support for searching where git is used as the vcs: http://blogs.msdn.com/b/visualstudioalm/archive/2015/02/13/announcing-limited-preview-for-visual-studio-online-code-search.aspx. From this I think it's fair to say it is just a matter of time...

    Update 2: There is now a Microsoft provided extension,Code Search which enables searching in code as well as in work items.

提交回复
热议问题