Is there a way to automatically create resource bundle entry for a highlighted string?

Answered

 Hi, I seem to remember a way to automatically create a resource bundle, while it is highlighted in the editor.  I tried, as it didn't work I started looking around in IDEA but can't find anything in there. I want to be able to hit Quick Fix ([Option] + [Enter]) and see the entry added to the resource bundle automatically and brought into focus in the editor.

Anyone remember this being possible? And how to configure it?

0
7 comments

You can use this inspection (disabled by default):

0
Avatar
Permanently deleted user

Very useful, I now remember it. I turned it on, it seems that I still miss something. I expected it to warn me and suggest a QuickFix, but that isn't happening. 

Somehow my muscle memory tells me this used to work. Am I overlooking something else?

0

Please try File | Invalidate Caches | Invalidate and Restart.

0
Avatar
Permanently deleted user

Just tried that. I see a change, but just nothing visual yet. After entering an invalid key, here is what Quickfix suggests to me.

0

Please file a bug at https://youtrack.jetbrains.com/issues/SCL and attach a sample project to reproduce.

0
Avatar
Permanently deleted user

Ok. Thanks.

0
Avatar
Permanently deleted user
0

Please sign in to leave a comment.