Grammar and Style settings
File | Settings | Editor | Proofreading | Grammar and Style for Windows and Linux
JetBrains Rider | Settings or Preferences | Editor | Proofreading | Grammar and Style for macOS
CtrlAlt0S
note
Preferences configurable on this page are saved using the mechanism of directory-based settings.
JetBrains Rider 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. For more information, refer to Grammar analysis.
On this tab, configure the types of files and specific code constructs where you want to check grammar.
Option | Description |
---|---|
String literals | Check grammar in string literals. |
Comments | Check grammar in generic line and block comments. |
Documentation | Check grammar in embedded code documentation. |
Commit messages | Check grammar in commit messages for the configured VCS. If you enable this, JetBrains Rider adds the corresponding inspection tool to the .idea/vcs.xml configuration file. |
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.
Item | Shortcut | Description |
---|---|---|
CtrlNumPad + | Click this button to expand all nodes. | |
CtrlNumPad - | Click this button to collapse all nodes. |
On this tab, view the list of words and phrases added as exceptions.
Item | Shortcut | Description |
---|---|---|
Ctrl0R,0D | Click this button to remove the selected exception from the list. |