Table of Contents

Class FormattingOptions

Namespace
NMF.AnyText
Assembly
NMF.AnyText.Lsp.dll

Represents the options for formatting a document or a range of text.

public class FormattingOptions
Inheritance
FormattingOptions
Inherited Members

Properties

InsertFinalNewline

Gets or sets a value indicating whether a final newline should be inserted at the end of the document. Optional.

[DataMember(Name = "insertFinalNewline")]
[JsonProperty(Required = Required.Default)]
public bool? InsertFinalNewline { get; set; }

Property Value

bool?

InsertSpaces

Gets or sets a value indicating whether spaces should be inserted instead of tabs.

[DataMember(Name = "insertSpaces")]
[JsonProperty(Required = Required.Always)]
public bool InsertSpaces { get; set; }

Property Value

bool

OtherOptions

Gets or sets additional formatting options that are not explicitly defined.

[JsonExtensionData]
[JsonProperty(Required = Required.Default)]
public Dictionary<string, object> OtherOptions { get; set; }

Property Value

Dictionary<string, object>

TabSize

Gets or sets the size of a tab in spaces.

[DataMember(Name = "tabSize")]
[JsonProperty(Required = Required.Always)]
public uint TabSize { get; set; }

Property Value

uint

TrimFinalNewlines

Gets or sets a value indicating whether multiple final newlines at the end of the document should be trimmed. Optional.

[DataMember(Name = "trimFinalNewlines")]
[JsonProperty(Required = Required.Default)]
public bool? TrimFinalNewlines { get; set; }

Property Value

bool?

TrimTrailingWhitespace

Gets or sets a value indicating whether trailing whitespace should be trimmed. Optional.

[DataMember(Name = "trimTrailingWhitespace")]
[JsonProperty(Required = Required.Default)]
public bool? TrimTrailingWhitespace { get; set; }

Property Value

bool?