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 Cmd/Ctrl+F, and enter your search query.
  • Alternatively, press Cmd/Ctrl+F, type your search query, then select the code, and click the In Selection icon.