DXCore Services – CodeStyle
November 22nd, 2011
The Code Style DXCore service provides methods and properties that specify user code style formatting settings, such as: prefixes and suffixes of locals, fields, properties and other declarations, a default visibility scope for types, members and others.
Methods of this service:
Method name |
Description |
HasFieldStyle(String) | Return true if the passed name has a field variable style based on user settings for the active language (on the Editor\Code Style\Identifiers options page of the Options Dialog). |
HasLocalStyle(String) | Return true if the passed name has a local variable style based on user settings for the active language (on the Editor\Code Style\Identifiers options page). |
HasParamStyle(String) | Return true if the passed name has a parameter style based on user settings for the active language (on the Editor\Code Style\Identifiers options page). |
Properties:
Property name |
Description |
FormatAutoDeclaration | Returns true if the Auto Declare code should be formatted according to the current IDE formatting style options. |
FormatCodeLibraryClip | Returns true if the inserted code library clips should be formatted according to the current IDE formatting style options. |
FormatDuplicateLine | Returns true if the Duplicate Line actions should be formatted according to the current IDE formatting style options. |
FormatMultiLineEmbedding | Returns true if the multi-line Embeddings should be formatted according to the current IDE formatting style options. |
FormatRefactoring | Returns true if the code refactorings should be formatted according to the current IDE formatting style options. |
FormatSelectionInversion | Returns true if the Selection Inversions should be formatted according to the current IDE formatting style options. |
FormatSingleLineEmbedding | Returns true if the single-line Embeddings should be formatted according to the current IDE formatting style options. |
FormatSmartPaste | Returns true if the Intelligent Pastes should be formatted according to the current IDE formatting style options. |
FormatTemplate | Returns true if the code template expansions should be formatted according to the current IDE formatting style options. |
Formatting | Returns the IFormattingService implementer for accessing code formatting rules. |
PrefixField | Returns the prefix associated with field variables for the active language based on user settings (on the Editor\Code Style\Identifiers options page). |
PrefixLocal | Returns the prefix associated with local variables for the active language based on user settings (on the Editor\Code Style\Identifiers options page). |
PrefixParam | Returns the prefix associated with parameters for the active language based on user settings (on the Editor\Code Style\Identifiers options page). |
ScopeConstant | Returns the MemberVisibility value for constants specified on the Editor\Code Style\Scope options page. |
ScopeEvent | Returns the MemberVisibility value for events specified on the Editor\Code Style\Scope options page. |
ScopeField | Returns the MemberVisibility value for fields specified on the Editor\Code Style\Scope options page. |
ScopeMethod | Returns the MemberVisibility value for methods specified on the Editor\Code Style\Scope options page. |
ScopeNestedType | Returns the MemberVisibility value for nested types specified on the Editor\Code Style\Scope options page. |
ScopeProperty | Returns the MemberVisibility value for properties specified on the Editor\Code Style\Scope options page. |
ScopeType | Returns the MemberVisibility value for types specified on the Editor\Code Style\Scope options page. |
SuffixField | Returns the suffix associated with field variables for the active language based on user settings (on the Editor\Code Style\Identifiers options page). |
SuffixLocal | Returns the suffix associated with local variables for the active language based on user settings (on the Editor\Code Style\Identifiers options page). |
SuffixParam | Returns the suffix associated with parameters for the active language based on user settings (on the Editor\Code Style\Identifiers options page). |
SuppressDefaultAccessModifiers | Returns true if access modifiers for default visibility are omitted in source code, by default. |