Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS: Search for a file by name in source control

I can't find a file in our source control of the TFS because it's simply a big mess. So I want to know if there is a way to search for files by their name?

I've heard of the Power Tool for TFS which enables search functionality but the problem is that it has to be installed and our sysadmin is currently not available. So does maybe a simple plugin exist?

like image 784
Manuel Zelenka Avatar asked Nov 06 '12 13:11

Manuel Zelenka


People also ask

How do you search Source Control?

Right-Click In the File List, right-click the file you want to check in and select Source Control > Check In (for selected files) or Source Control > Project > Check In All (for all files in the project). Local Toolbar In the File List, select the file(s) you want to check in.

How do I use Source Control explorer?

Open Source Control Explorer You can open the Source Control Explorer window: From the Team Explorer home page (Keyboard: Ctrl + 0, H), choose Source Control Explorer. From the menu bar. Select View, Other Windows, Source Control Explorer.

How do I see all checked out files in TFS?

Right-click on the highest level that you want to search for checked out files (like the root of the project collection) and click the Find menu –> Find by Status. Recursive, and click Status. Click Find. This will give you a list of all the files that are checked out.

How do I delete a file from Source Control in TFS?

In either Solution Explorer or Source Control Explorer, browse to the folder or file that you want to delete. Select the items that you want to delete, open their context menu (right-click), and choose Delete.


1 Answers

If you are using Visual Studio 2010

  • Right click on your collection or team project
  • Select 'Find in source control'
  • Then select 'status' or 'wildcard'
  • You can search for your files there

The following will list all the items in your repository without checking them out

tf Dir command

tf dir /recursive $/ 

you can pass in the item you are searching for also e.g.

tf dir /recursive $/*.cs 

gets all the .cs files in all team projects

Note: depending on how big your source is, this could take sometime.

like image 50
Webplanet TFS Consulting Avatar answered Oct 14 '22 23:10

Webplanet TFS Consulting