Home > Software engineering >  How to search for a regex everywhere in IntelliJ or Android Studio?
How to search for a regex everywhere in IntelliJ or Android Studio?

Time:01-17

In Android Studio (IntelliJ), I know how to:

  1. Search everywhere for a string (not necessarily a symbol, could be in a comment).
  2. Search in a file for a regex (not necessarily a symbol, could be in a comment)
  3. Search everywhere for a "regexed" symbol.

But I have not been able to find a way to search for a non-symbol, regex, everywhere, style AstroGrep.

Is this at all possible in Android Studio version 2021.3?

CodePudding user response:

Go to the menu item Edit | Find | Find in Files Ctrl/Cmd Shift F. In the dialog that appears you can enable regex search with the keyboard shortcut Alt X or use the mouse.

(At least that is how it works in IntelliJ IDEA. I assume it works the same in Android Studio)

  • Related