MPS 2021.1 Help

Spellchecking

MPS helps you make sure that your source code, including single-line comments, Javadoc text and string literals, is spelt correctly.

The Typo inspection detects and highlights words not included in any dictionary. You can either correct the spelling or accept the word as correct.

Accept a misspelled word

  • Select the Add to dictionary action in the Context menu to add the word to the user's dictionary and skip it in the future.

Dictionaries

MPS includes bundled dictionaries for all configured languages. You cannot modify them directly but you can extend the spellchecker in other ways:

  • Save words to a built-in global or project dictionary.

  • Add plain-text files with the .dic extension that contain lists of words.

  • If you have the Hunspell plugin installed and enabled, you can add Hunspell dictionaries, which comprise of two files: the DIC file that contains a list of words with the applicable modification rules and the AFF file that lists prefixes and suffixes regulated by a specific modification rule. For example, en_GB.dic and en_GB.aff.

Configure the spellchecker dictionaries

  1. In the Settings/Preferences dialog Ctrl+Alt+S, select Editor | Proofreading | Spelling.

  2. Configure the list of custom dictionaries:

    • To add a new custom dictionary to the list, click the Add button or press Alt+Insert and specify the location of the required file.

    • To edit the contents of a custom dictionary in MPS, select it and click the Edit button or press Enter. The corresponding file will open in a new editor tab.

    • To remove a custom dictionary from the list, select it and click the Remove button or press Alt+Delete.

Select the default dictionary for saving words

  1. In the Settings/Preferences dialog Ctrl+Alt+S, select Editor | Proofreading | Spelling.

  2. Select either the built-in project-level or application-level dictionary or disable the option to prompt you every time you save a word.

Add accepted words manually

  1. In the Settings/Preferences dialog Ctrl+Alt+S, select Editor | Proofreading | Spelling.

  2. Add words to the Accepted words list. MPS adds manually accepted words to the project-level dictionary.

    You can't add words that are already present in one of the dictionaries and mixed-case words, such as CamelCase and snake_case.

Last modified: 23 April 2021