简体   繁体   中英

Is there a way to search by string previews in Android Studio?

I have a class which contains alot of string resources. I would like to search (Ctrl + F) particular string preview. For example

getString(R.string.transfer_label);

which is shown in intellij IDEA as string resources value

"TRANSFER"

So when i press CTRL+F and type "TRANSFER" naturally nothing happens. Is there any other shortcut that allows it? or any existing plugin?

Edit: I am looking for solution which works like CTRL+F one. I mean you type in something and it instantly moves you to place in code where its used. Making it very quick.

I normally go in my strings.xml and use "Find usage" (Alt + F7) on a string resource. This is the only way I know.

If your key Map is Default- cntrl+shift+F

If you want change the keys and key maps go here

Android Studio -> File ->Settings > KeyMap

Please find the below image for reference :

在此处输入图片说明

You can search in search bar what you are looking for

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM