Your source code can contain hardcoded literals which you would like to recognize and further extract to properties. To highlight hardcoded literals in the editor, use Internationalization code inspections.

To enable recognizing hardcoded string literals
  1. Open the Settings dialog.
  2. In the Project Settings, select Editor | Inspections to open Inspections dialog box.
  3. Select the desired profile, and locate the node Internationalization issues.
  4. Check the option Hard coded strings, which will cause the hardcoded string literals to be highlighted in the editor.

    Note that you can configure severity of this inspection and specify when the hardcoded strings should be recognized. For example, you can opt to skip the content of toString() method, or the literals without alphabetic characters.

  5. Apply changes and close the dialog. Now the editor will highlight the hardcoded string literals, as shown below:

    img

See Also

Reference: