Preferences configurable on this page affect the behaviour of specific Code Style Assistance features. The preferences are taken into account when ReSharper applies refactorings, code templates or produces generated code. They can be also applied to the existing code by using code cleanup with the corresponding settings.
The preferences with the Notify with selector have corresponding code inspections that notify you if this aspect of the code style in the inspected scope differs from the the preferred style. Using these selectors, you can configure severity levels of the inspections.
If you want some preference not to be checked and not to be applied with the code cleanup, set the severity level to 'Do not show'.
The preference in this section defines whether apostrophe (') or quote (") should be used as a quote
|Modifiers||The preference in this section defines whether the 'public' modifier should be used explicitly.|
Preferences in this section define how to handle aliases.
Preferences in this section define whether and when types should be specified explicitly and whether the implicit 'any' is allowed.
The preference of using implicit 'any' can be also configured in project settings. If the implicit 'any' types are not allowed in the project settings, they are always highlighted as errors independently of your code style preferences.
- Naming Style
- Navigating Between Code Issues
- Finding Out What Is Wrong with Your Code
- Code Formatting Rules
- File and Type Layout
- File Header Style
- Namespace Imports Assistance
- Implicit/Explicit Typing
- Using Auto-Properties
- Making Fields Readonly
- Attributes Style
- Arranging Modifiers
- Arranging Optional Member Qualifiers
- Reformatting XML Doc Comments
- Removing Code Redundancies