自动code产生的的strings.xml在Eclipse [英] Automatic Code Generation for Strings.xml from Eclipse

查看:83
本文介绍了自动code产生的的strings.xml在Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得这是浪费时间,每次我需要输入一个字符串,我必须去手动编辑的strings.xml文件。是我想要做到理想的是有Eclipse中弹出一个对话框,让我指定资源的名称和它的价值。随后的Eclipse将产生code中的strings.xml并粘贴正确的引用到字符串中的光标位置。

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?

推荐答案

选择一个字符串,点击重构 - > Android的 - >提取安卓字符串

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

这篇关于自动code产生的的strings.xml在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆