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 Control+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 occurrences:

  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. Choose the branch you want to search and enter your text query:

    searchInFilesBasic.png

    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 2023