Search in Selection Only

Limit the search to the selected part of code.

When looking for text in a file, you can limit the search to only the selected part of code:

  • Select a code fragment, hit ⌘F (macOS) / Ctrl+F (Windows/Linux), and enter your search query.
  • Alternatively, press ⌘F (macOS) / Ctrl+F (Windows/Linux), type your search query, then select the code, and click the In Selection icon.

Related Resources

Working with the Call Hierarchy
Working with the Call Hierarchy
Analyze call trees for functions or methods
Select In
Select In
Select the current file in the Project or Changes view and more
File Structure Popup
File Structure Popup
View the file or whole package structure and navigate to any element.