IntelliJ IDEA supports the following features for the properties files:
key - delimiter - value. IntelliJ IDEA uses
= (equal sign) or : (colon) as a
For example, if you want a field label to read "Your name:", you might create a pair in a properties file like this:
nameLabel: "Your name:"
Error highlighting for errors like duplicate property keys and invalid
Inspection and quick fix for detecting and removing duplicate keys in
Referencing properties from Java files and Ant build files.
Code completion for property keys:
- Inspection and quick fix for detecting and creating the missing
property keys and values:
- Goto DeclarationCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, or Ctrl+B, or Ctrl+B, or Ctrl+Alt+G, Escape, Period, Alt+Period or Ctrl+Button1 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickF12, Shift+F2, Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickF3 or Ctrl+Button1 ClickMeta B, Meta Button1 Click or Button2 Click, Meta Button1 Click or Button2 ClickF3 or
to navigate from
a reference to a key to its declaration:
- Finding usages of the currently selected property.
- Refactoring for properties includes Rename, Move, Copy, Safe Delete, and Migrate.
- Code completion for property keys:
- Structure view for properties
- Quick Definition Lookup for properties files:
if an action calls a property, you can view the property definition by pressing Ctrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+IShift Meta IAlt Space or Meta Y: