Ignore parts of the code
In most solutions, there are parts of the code where you want to disable some or all of JetBrains Rider features. This topic lists all available ways to make JetBrains Rider ignore specific parts of the code.
Disable code inspection for parts of the code
Scenario | Minimize unwanted results in design-time code inspection and code inspection in specific scope by ignoring parts of code that you are not going to improve. |
How to ignore |
|
What is disabled | All code inspection features . |
Disable code inspections with lower severity levels in generated code
Scenario | Ignore generated parts of the code to minimize unwanted results in design-time code inspection and code inspection in specific scope but do not ignore errors and warnings in that parts to make sure that the generated code compiles. |
How to ignore |
|
What is disabled | Code inspections with lower severity levels as well as code cleanup. |
Exclude types, members, and namespaces from import and completion suggestions
Scenario | You may want some types, members, or namespaces not to be suggested, for example, if you have something similar to a system type in your solution, say |
How to ignore | To exclude such items from the suggestions, add them to the Exclude from import and completion list on the page of JetBrains Rider settings Control+Alt+S. The format of the entries is |
What is disabled | The specified items will not appear in import namespace suggestions and in code completion suggestions. |