다음을 통해 공유


DefaultOptions Class

Common editor default options.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Text.Editor.DefaultOptions

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Public NotInheritable Class DefaultOptions
public static class DefaultOptions
public ref class DefaultOptions abstract sealed
[<AbstractClass>]
[<Sealed>]
type DefaultOptions =  class end
public final class DefaultOptions

The DefaultOptions type exposes the following members.

Fields

  Name Description
Public fieldStatic member ConvertTabsToSpacesOptionId Determines whether to convert tabs to spaces.
Public fieldStatic member ConvertTabsToSpacesOptionName The name of the default option that determines whether to convert tabs to spaces.
Public fieldStatic member IndentSizeOptionId Determines the size of an indentation.
Public fieldStatic member IndentSizeOptionName The name of the default option that determines size of an indent. This option is used to determine the numerical column offset of an indent level.
Public fieldStatic member LongBufferLineChunkLengthId The default option that determines the chunking size for long lines. Lines longer than LongBufferLineThreshold may be considered in chunks of this size.
Public fieldStatic member LongBufferLineChunkLengthOptionName The name of the default option that determines the chunking size for long lines. Lines longer than LongBufferLineThreshold may be considered in chunks of this size.
Public fieldStatic member LongBufferLineThresholdId The default option that determines the threshold for special handling of long lines. Some operations do not operate on lines longer than this threshold.
Public fieldStatic member LongBufferLineThresholdOptionName The name of the default option that determines the threshold for special handling of long lines. Some operations do not operate on lines longer than this threshold.
Public fieldStatic member NewLineCharacterOptionId Determines the newline character or characters.
Public fieldStatic member NewLineCharacterOptionName The default option that determines the newline character or characters. The newline character can be a string, as in the common case of "\r\n". This setting applies when ReplicateNewLineCharacter is false, or when ReplicateNewLineCharacter is true and the text buffer is empty.
Public fieldStatic member ReplicateNewLineCharacterOptionId Determines whether to duplicate the new line character already present when inserting a new line.
Public fieldStatic member ReplicateNewLineCharacterOptionName The name of the default option that determines the newline character or characters. The newline character can be a string, as in the common case of "\r\n". This setting applies when ReplicateNewLineCharacter is false, or when ReplicateNewLineCharacter is true and the text buffer is empty.
Public fieldStatic member TabSizeOptionId Determines size of a tab.
Public fieldStatic member TabSizeOptionName The name of the default option that determines size of a tab. This option is used to determine the numerical column offset of a tab character ('\t') and, if ConvertTabsToSpaces is enabled, the number of spaces to which a tab should be converted.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace