MPS 2017.1 Help

Code Style

File | Settings | Editor | Code Style for Windows and Linux
MPS | Preferences | Editor | Code Style for macOS
Ctrl+Alt+S
/help/img/idea/2017.1/settings.png


ItemDescription
NamingOptions:
  • Prefer longer names: select this check box to have the longest name highlighted in a lookup list for code completion. Otherwise, the shortest name is highlighted.
  • Name prefix / suffix: in these text boxes, type the prefixes and suffixes to be used when generating suggestions for naming new symbols through the MPS code-generation features.

    If the fields are left blank, then the default name suggestions without prefixes or suffixes will be used. When you add a prefix value, MPS automatically converts the first letter of the suggested base name to upper case.

    For example, if the prefix for a static field is defined as s, and the type of the field is Counter, then the suggested static field name will be sCounter.

    Note that this prefix will not take part in the generation of the getter and setter method names. So, in our example, the accessor names will be getCounter and setCounter respectively.

    Specify the name prefixes and suffixes for fields, static fields, parameters, and local variables.

See Also

Last modified: 3 April 2017