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

How to Quickly Jump to Recent Files in any JetBrains IDE
Are you tired of hunting for that crucial file buried in your project? Say goodbye to the hassle with these IDE shortcuts and tips. Jump to recent files effortlessly in JetBrains IDEs like IntelliJ IDEA, PyCharm, PhpStorm, WebStorm, GoLand, CLion, RubyMine, and more!
Navigate to the Last Edited Location
How to navigate to your last edit in WebStorm.
Navigate with Select In
Find the current file in the Project tool window faster.