PhpStorm 2020.2 Help


File | Settings | Editor | Proofreading | Grammar for Windows and Linux

PhpStorm | Preferences | Editor | Proofreading | Grammar for macOS Ctrl+Alt+S the Settings/Preferences icon

This page appears only when the Grazie bundled plugin is enabled on the Settings/Preferences | Plugins page as described in Installing plugins from JetBrains repository.

PhpStorm can check the grammar in various textual elements in your source code. Use this page to configure the scope, rules, and exceptions for such grammar checks. See Grammar for details.

Scope Tab

On this tab, configure the types of files and specific code constructs where you want to check grammar.

String literalsCheck grammar in string literals.
CommentsCheck grammar in generic line and block comments.
DocumentationCheck grammar in embedded code documentation, such as PHPDoc comments.
Commit messages Check grammar in commit messages for the configured VCS. If you enable this, PhpStorm adds the corresponding inspection tool to the .idea/vcs.xml configuration file.

Rules Tab

On this tab, configure the set of grammar rules to apply. Enable or disable the rules by selecting or clearing the checkboxes next to them.

the Expand All buttonCtrl+NumPad +Click this button to expand all nodes.
the Collapse All buttonCtrl+NumPad -Click this button to collapse all nodes.

Exceptions Tab

On this tab, view the list of words and phrases added as exceptions.

the Remove buttonAlt+Delete Click this button to remove the selected exception from the list.
Last modified: 19 August 2020