In TFS, either using Visual Studio 2019 or the web interface, what should I do to locate a file by name or part of a name or extension? I have a large repository and I need to find a specific file, but it is not practicable to open each subfolder to try to find it visually.
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.
From Visual Studio, go to the Team Explorer Connect page (Keyboard: Ctrl + 0, C) and then connect to the project. (If the project you want to open is not listed, choose Select Projects and then connect to the project.) Map the project to a folder on your dev machine. Map the workspace and get your code.
Updated
Since you are using TFS2013 and VS 2019 to find file without checking out the code locally.
Workaround(not work with OP): use a wildcard directory path with TF DIR as follows:
tf dir /folders $/<PROJECT_NAME>/*Prod /recursive /collection: http://<HOST_NAME>/tfs/<COLLECTION_NAME>
Note: The command does not support wildcarding the PROJECT_NAME in the command above, if you try wildcarding the PROJECT_NAME the command will return the following response:
Sample and result for reference:
Without creds cached on your local machine. If you need to specify creds by adding the following argument: /login:<DOMAIN\USERNAME>,<PASSWORD>
Besides, if you already pull/map the repository in local machine with all files. You could also use a local tool or system build-in search feature to search the files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With