Is there a way to automatically create resource bundle entry for a highlighted string?
已回答
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?
请先登录再写评论。
You can use this inspection (disabled by default):
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?
Please try File | Invalidate Caches | Invalidate and Restart.
Just tried that. I see a change, but just nothing visual yet. After entering an invalid key, here is what Quickfix suggests to me.
Please file a bug at https://youtrack.jetbrains.com/issues/SCL and attach a sample project to reproduce.
Ok. Thanks.
Issue created: https://youtrack.jetbrains.com/issue/SCL-12330