IntelliJ IDEA 2017.3 Help

Creating and Editing properties Files

On this page:

Basics

The properties files are used to store localization strings. IntelliJ IDEA enables you to create new properties files, and detects the existing ones.

Creating locales

To create properties files

  1. Right-click a directory where you would like to create a properties file.
  2. On the context menu of the target directory, choose New | File.
  3. In the New File dialog box, type the file name with the corresponding extension, and click OK. Note that you can also create nested directories under locales, and add new properties files there.

Editing locales

While editing properties files, use the following techniques:

  • Syntax highlighting: Keywords, delimiters, values and comments are highlighted. You can configure the color scheme in the Color Scheme page of the Settings/Preferences dialog.
  • Code inspection detects unused strings and suggests to fix the problem immediately:
    AppCodeI18Inspection
  • Expand word: Start typing, and press Alt+Slash to go through the existing strings.
Last modified: 12 December 2017

See Also