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

Mnemonic bookmark
Mnemonic bookmark
Use mnemonic bookmarks for easy navigation.
Find in Path with the Navigation Bar
Find in Path with the Navigation Bar
Use the Navigation bar and Find in File together and be faster than all of your team members.
Speed search with the Navigation Bar
Speed search with the Navigation Bar
Use the keyboard abbreviations to quickly find what you're looking for in the Navigation bar.