Automatic Code Generation for Strings.xml from Eclipse

﹥>﹥吖頭↗ 提交于 2019-12-05 19:55:08

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/3631661/automatic-code-generation-for-strings-xml-from-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!