Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio: can we directly edit string.xml from java source file?

While editing code sometimes we might need to change the string value in strings.xml, what is the fastest way to do that?

like image 204
Nishant Singh Avatar asked Jul 04 '26 06:07

Nishant Singh


1 Answers

For windows/Linux:

Hold Ctrl and hover your mouse over the reference of string. It will create a link that will take your cursor to the string.xml file .

For Mac:

Hold Cmd button and do the same thing as above.

Example: enter image description here

like image 189
Mohammad Arman Avatar answered Jul 05 '26 20:07

Mohammad Arman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!