I18N-Formatter is a plugin for Intellij IDEA which formats a message.properties
file.
This plugin sorts, formats and groups Java message.properties
files in the same way as Eclipse.
Just select Edit > Format Messages.properties in menu.
Or use the shortcut: Alt+Shift+L.
From public plugin repository: i18n-Formatter
The property file has to be open in the editor as active tab.
The formatter adapts the Eclipse message.properties
style.
The formatting consists of three steps:
- Sort keys
- Group key by parent key
- Align values bases on longest key in the group
Groups are separated by new lines First line includes 'formatter:off' to protect file against the IntelliJ formatter.
#@formatter:off
Popup_Messages_Alter = Alert
Popup_Messages_Warning = Be careful
Settings_User_Email_Title = Email
Settings_User_FirstName = First Name
Settings_User_LastName = Last Name
Settings_Window_Title = Title