Inspection Settings
for macOS
Ctrl+Alt+S
In this page of JetBrains Rider settings, you can specify your preferences for code inspection.
Item | Description |
---|---|
General | |
Enable code analysis | Select this check box to enable design-time code inspection. |
Color identifiers | This option lets you enable or disable syntax highlighting. If it is selected, language identifiers are highlighted with colors as defined in the page, under the Identifiers node. |
Highlight color usages | Enables highlighting of color definitions in code. For more information, see Color Assistance. |
Highlight special characters in string literals | Enables highlighting of correct and incorrect escape sequences in non-verbatim strings. For example: For more information, see Regular Expressions Assistance. |
Highlight context exits | This option, enabled by default, tells JetBrains Rider to highlight all places where the control flow can exit the current context. For example, for a method, it will highlight the return type of the method, all return , throw keywords, etc. when you set the caret to one of these identifiers For a loop, it will additionally highlight the loop keyword as well as all the break statements inside this loop. Note that if a method is not entirely visible in the editor, you can invoke the Navigate To Function Exits command on the method name to trigger another kind of highlighting, which will not disappear when you your caret leaves the method name. |
Enable solution-wide analysis | Enables solution-wide analysis (including solution-wide code inspections ), which is disabled by default. Note that in large solutions, solution-wide analysis may result in some performance degradation. However, there are several ways to improve the performance of solution-wide analysis. For more information, see Configuring Solution-Wide Analysis. |
Show the 'Import namespace' action using popup | If this option is selected, a pop-up that suggests importing namespaces shows up if there is one or more non-imported types are detected in the file: If it is not selected, the corresponding action appears in the action list. See Importing Missing Namespaces for details. |
Value analysis mode | Using the value analysis, JetBrains Rider finds out which entities can hold null value and highlights possible errors with null dereference. You can choose one of the following modes.
|