How to add string resources in Eclipse?

后端 未结 4 1235
Happy的楠姐
Happy的楠姐 2021-02-07 10:08

Can I have Eclipse adding my string resources as I code or do I have to switch to string.xml all the time and add each string?

4条回答
  •  -上瘾入骨i
    2021-02-07 10:43

    You have to switch to string.xml: its unfortunate, but right now Eclipse doesn't give you a clean way of popping into the string editor directly from the code you are typing. Optimally you would type a string constant (like R.string.new_string and I guess hotkey or double click or something and jump directly into the strings.xml editor with the existing entry selected (if new_string exists) or a new entry created (if new_string doesn't yet exist).

    Wouldn't that be nice.

提交回复
热议问题