Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatic Code Generation for Strings.xml from Eclipse

I find it a waste of time that every time I need to enter a string that I have to go edit the strings.xml file manually. What I'd like to be able to do ideally is have Eclipse pop up a dialog box that lets me specify the name of the resource and the value for it. Then Eclipse would generate the code in strings.xml and paste the correct reference to the string at the cursor position.

Does such a facility exist?

like image 520
Jeff Axelrod Avatar asked Sep 02 '10 22:09

Jeff Axelrod


1 Answers

Select a String, click Refactor --> Android --> Extract Android String.

like image 195
antonyt Avatar answered Nov 21 '22 21:11

antonyt