0

How can I get an auto-generated string name suggestion when extracting a string resource? I distinctly remember that in one of my configurations, whenever I pressed Alt-Enter, it would provide actual suggestions for my extracted strings. This saves a lot of time.

How can I set this feature?

swiftBoy
  • 35,607
  • 26
  • 136
  • 135
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153
  • You should write to intellij idea (jetbrains) support https://intellij-support.jetbrains.com/hc/en-us/requests/new?ticket_form_id=66731 – wilddev Sep 23 '16 at 13:39
  • I think the link will help you [here](http://stackoverflow.com/questions/16977208/auto-generate-string-reference-in-android-studio) – khakishoiab Sep 26 '16 at 07:06
  • Yes I know how to extract but it used to provide a string name suggestion based on the string. I'm wondering why it doesn't anymore. – Martin Erlic Sep 26 '16 at 07:16

1 Answers1

0

enter image description hereThe strings can be extracted to strings.xml file by simply selecting/highlighting the string and pressing Alt + Enter, then click Extract string resource,you should get an auto suggestion for name or put your custom name and press ok after selecting strings.xml in dropdown and checking values.

you can use the same method from code as well.

khakishoiab
  • 9,673
  • 2
  • 16
  • 22