How to use Advanced (CamelCase) search in Android studio

When working on Android project, search tool is definitely something you’ve used. What if, however, you have a class or file with a really long name?

For instances, you could have following classes in your project

class ThisIsLongClassName {
class ThisIsAnotherLongClassName {}
class ThisIsYetAnotherClassName {}
class ThisIsFinallyPerfectName {}}

If you want to search for ThisIsAnotherLongClassName, you must enter the complete name of the class, or at least the name that matches the pattern (for instance, ThisIs.. even that could provide result containing multiple classes). What if there was a better option?

Meet CamelCase searching

You can type in CamelCase to search across Classes, Files, Symbols, Actions and Git. In other words, simply type the initial letter of each word.

Now, to search for ThisIsAnotherLongClassName

1. Press double shift (Shift+Shift)

2. In the search box, enter TIALCN

3. The search result will include the desired class

Share with your friends

Leave a Reply

Your email address will not be published. Required fields are marked *