How to use Advanced (CamelCase) search in Android studio (APG-9)

How to use Advanced (CamelCase) search in Android studio (APG-9)

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

No alt text provided for this image

#android?#androiddeveloper?#androiddevelopment?#androidstudio?#kotlin?#java


We also have an android developer community on WhatsApp where we enjoy learning and sharing everything android, including live sessions, interview preparation, job referral, tutorials, and Q&A. Join us if you're interested.

https://bit.ly/adc-whatsapp-1

https://bit.ly/adc-whatsapp-02?(Join this if the first group is full)

No alt text provided for this image
Bharat Kumar

Senior Android Dev @Buckling Springs

2 年

People say my typing is fast but i used this technique for a long time and thank you for sharing this with other people even if you have slow typing speed this helps a lot even with function names also i think

要查看或添加评论,请登录

Rajesh Hadiya的更多文章

社区洞察

其他会员也浏览了