Choose your search scope in Code Search

Last Update: 4/7/2017

When you search your code, you can:

Go back Back to Search overview

Choose projects and repositories

When you search from inside a project, the default is to search only within that project.

In a TFVC project, you see a list of folder paths in that project for which you have read access - you won't see any projects and folders for which you don't have read permission. Select paths in the folder tree to narrow your search if required.

Choose TFVC projects and paths

In a Git project, you see a list of the repositories it contains (Code Search indexes files in only the default branch of your Git repositories; usually this is the master branch). Use the project and repository checkboxes to widen your search to more or all projects, or to narrow your search to fewer projects and repositories. If there is more than a few projects or repositories, use the Show more link to see them all.

Choose Git projects and repositories

Code Search remembers your last settings, such as the project and repository or path you searched in. Clear all the checkboxes to search across all projects. Do this quickly and easily with the Clear all links when you want to search in a different scope.

Clear all the selections for projects and repositories

Filter the lists of projects, repositories, and paths

You can filter the lists of projects, repositories, or paths to make it easier to see and select the ones you are interested in. Filter the list of projects using the Filter Projects textbox.

Filter for projects

Filter and select paths for a TFVC project using the Paths textbox.

Filter for paths in a TFVC project

Filter the list of repositories for a Git project using the Filter Repositories textbox.

Filter for repositories in a Git project

Filter and select paths in a Git repository using its Paths textbox.

Filter for paths in a Git project

You can also limit the search to specific projects, repositories, TFVC folder paths, file paths, and files using functions in the search string.

Next steps

See more details of how you can use the advanced search options and the rich search results page.

See also

Go back Back to Search overview

Got feedback?

Question Send your feedback to Post your ideas and feature requests on UserVoice.