JetBrains Space Help

Search a Repository

Find a file

To find a specific file in a repository:

  1. Navigate to the project and open the repository you want to search.

  2. Press Ctrl+K and start typing the file name in the displayed dialog:

    findFile.png

Find a commit (revision)

To find a specific commit in a repository:

  1. Navigate to the project and choose the repository you want to search (if there are more than one).

  2. Go to the Commits tab.

    • The Filter commits field on top of the commit list lets you search by words and phrases contained in commit messages:

      searchCommits.png
    • Use Filter by path to filter commits by files and folders. For example, enter src/app/resources to return commits that affected files contained in the resources folder.

    • You can further narrow down your search by picking a specific commit author, branch, and time span.

Find text, symbols, code fragments

You can search the source code for text occurrences across all files in the repository, or narrow down your search to specific file types.

To search the source code for text occurences:

  1. Navigate to the project and open the repository you want to search.

  2. Go to the Files tab.

  3. Click Search in files:

    searchInFiles.png
  4. Enter your text query:

    searchInFilesBasic.png

    Your search will be limited to the default branch.

    Go to the Advanced options to:

    • Search the entire repository.

    • Limit your search to specific file types — enter file masks (for example *.html)

    searchInFilesAdvanced.png
  5. Hit Enter or click Search:

    searchRepositoryResults.png

Last modified: 18 August 2021