How do I get IntelliJ IDEA to auto-complete messages from a property file?
intellij-idea, spring-mvc
Solution
Make sure that directory containing properties file is marked as a source root (this is indicated by blue directory icon).
If it's not, right click on it and select `Mark As... -> Source root`.
Problem
I'm using IntelliJ IDEA Ultimate v12 to build an application with Spring MVC. I'm using a `message_en.properties` file to localise my application's text messages. I can use ⌘-click to navigate from Java code to the message file, so the IDE has some knowledge of the link, but it doesn't auto-complete for me. Can anyone suggest what I need to do so that auto-complete will work?