Elye
Elye

Reputation: 60321

Any shortcut to see the resource variable content in the source code?

In Android Studio, when we open a code or XML file, sometimes we can see the resource value as shown below i.e. MockServer Experiment. By clicking into it we'll be able to see that it is a resource string variable @string/app_name

My question is, how can I do the reverse (e.g. from the resource string variable, I can get it to show the value)? Aside from clicking into the resource file to see it.

Upvotes: 3

Views: 334

Answers (2)

Yamashiro Rion
Yamashiro Rion

Reputation: 1976

Ctrl+> works for me on my Ubuntu machine. To show a string value, you need to move the cursor to e.g. @string/app_name and press the shortcut.

Upvotes: 3

Mohamadreza Rafie
Mohamadreza Rafie

Reputation: 1

if move typing cursor on it and use Ctrl+Shift+i, then a popup menu is opened and shows the definition.1

Or You Can use Ctrl+Q

My Android Studio Version is 4.0

Upvotes: 0

Related Questions