You can get "Show usages of field xyz" with the help of cursor & command (in Mac) in Java,How to find where specific xml tag has been used?
For example how to find usage of Hello key:
<string name="Hello">Hello world</string>
Asked
Active
Viewed 4,885 times
13
Amey Jahagirdar
- 455
- 1
- 4
- 14
-
2Alt+F7 (find usage) on resource name or Ctrl+Shift+F (search entire project) for value. – Andrii Omelchenko Oct 20 '16 at 08:09
-
Thanks a lot @AndriyOmelchenko, You saved a lot of my time :) – Amey Jahagirdar Oct 20 '16 at 08:17
-
http://stackoverflow.com/a/20252716/4585226 Take a look at this answer – 476rick Oct 20 '16 at 08:21
1 Answers
15
Right-click on the resource name in the strings.xml (in your case, on Hello) or on the id in the code and select Find usages. This will give you the usages of this res.
OSX Command-Option-F7
Windows Alt + F7
Kelevandos
- 7,024
- 2
- 29
- 46
-
2I don't like this process. From java code if I press CTRL+Click on a R,string.hello file then it shows that where the "hello" text appears. but from strings.xml folder I can't do that.. Have there any solution on that? – Ahamadullah Saikat Jul 31 '17 at 06:50
-