Search and navigate
JetBrains Fleet provides various means to search and navigate through your workspace. They allow you to quickly find files, locations within the files, symbols in the code, and JetBrains Fleet actions.
Goto popup
The Goto popup is the central place for everything related to search in the project. You can access it by using the shortcut or clicking the Search icon in the top-right corner of the JetBrains Fleet window.
![Accessing Go to popup using a button in the UI Accessing Go to popup using a button in the UI](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet-goto-icon.png)
The Goto popup helps you look for files, actions, symbols, and more. Remembering its shortcut will save you a lot of time.
By default, it searches for files and top-level symbols. You can also narrow the search to files ⌘ P, symbols ⌘ ⇧ P, or symbols in the current file ⌘ ⇧ O.
![Searching for main() in the go to popup Searching for main() in the go to popup](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet-goto.png)
Actions ⌘ ⇧ K, tools, and full-text search ⌘ ⇧ F are available as tabs in the Goto popup. You can switch to them from the Goto tab ⌃ ⇥ or open the required tab right away by using a dedicated shortcut.
If you need more space for displaying the results, you can move the search to a dedicated panel. For that, click the Open in Tab icon in the top-right corner of the popup.
![Viewing search results in a dedicated panel Viewing search results in a dedicated panel](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet-goto-panel.png)
Find Fleet actions
Whenever you want JetBrains Fleet to do something, but do not know where to look for it, the first place to try is the Actions popup. For example, if you want to forward a port for remote development, start typing port
or forward
.
![Searching how to forward a port in the go to popup Searching how to forward a port in the go to popup](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet_forward_port.png)
Many actions have aliases, which removes the need for remembering their exact name. Just enter a keyword that is close enough and select from the actions matching your request.
This method not only works for "big" actions like forwarding ports or importing Gradle projects. You can use this, for example, to explore editor actions. Try typing caret
:
![Searching for actions related to caret using Go to popup Searching for actions related to caret using Go to popup](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet-actions-caret.png)
Full-text search
If you need to search content of the files throughout the project or automatically replace it, use the Text search dialog. For advanced queries, it has several matching options and allows you to use regular expressions.
![Full-text search using the Go to popup Full-text search using the Go to popup](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet-find-in-path.png)
After you have found the required location, you can open it in a separate editor tab or you can edit it right from the preview.
To toggle the replace mode, click Replace in the right-hand part of the search field:
![Replace in path using the Go to popup Replace in path using the Go to popup](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet-replace-in-path.png)
If you need more space for displaying the results, you can move the search to a dedicated panel. For that, click the Open in Tab icon in the top-right corner of the popup.
![Full-text search using a dedicated panel Full-text search using a dedicated panel](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet-find-in-path-panel.png)
Browse file structure
You can quickly view the structure of a file and navigate to one of its elements using the Goto popup. The file elements are displayed in a tree-like structure.
![Viewing file structure in Go to popup Viewing file structure in Go to popup](https://resources.jetbrains.com.cn/help/img/fleet/1.39/fleet-symbols-in-file.png)
Editor navigation
The following actions will help you navigate between editor tabs and file locations in an efficient manner:
Action name | Shortcut | Description |
---|---|---|
Back, Forward | ⌘ [ ⌘ ] | Navigate to a recently visited location and back |
Previous Tab, Next Tab | ⌘ ⌥ ← ⌘ ⌥ → | Switch between editor tabs |
Go to Previous Error, Go to Next Error | ⌘ ⇧ E ⌘ E | Navigate between the errors and warnings in the current file (may require Smart mode) |
Go to line | ⌘ L | Navigate to a specific line in the current file |
Find Replace | ⌘ F ⌘ ⌥ F | Search and replace within the current file |