问题
In Eclipse I used to use a combination (first press Shift + Alt + A, then press S) to extract strings into strings.xml
but I could not find it on Intellij. How to do this on Intellij?
回答1:
You can use Alt + Enter combination.
More info
回答2:
Goto Android studio 'Help' -> Find action -> type "extract string resource"
You will find a ON / OFF button. Switch on the option.
回答3:
Doing the same thing.
Paramasivam Vijay Anand Had it right.
Android Studio 2.2.3 you can go to help and turn on the Extract string resource. However, Alt+enter does not extract the resource when clicking the text in the Design tab, it works for me when I clicked to the Activity_main and then selected the text there. Quotes didn't seem to matter.
来源:https://stackoverflow.com/questions/13304339/what-is-the-short-cut-to-extract-strings-from-android-code-into-the-strings-xml