Interface FormattingOptions
interface FormattingOptions {
eol?: string;
insertFinalNewline?: boolean;
insertSpaces?: boolean;
keepLines?: boolean;
tabSize?: number;
}
eol?: string;
insertFinalNewline?: boolean;
insertSpaces?: boolean;
keepLines?: boolean;
tabSize?: number;
}
Index
Properties
Properties
Optionaleol
eol?: string
The default 'end of line' character. If not set, '\n' is used as default.
OptionalinsertFinalNewline
insertFinalNewline?: boolean
If set, will add a new line at the end of the document.
OptionalinsertSpaces
insertSpaces?: boolean
Is indentation based on spaces?
OptionalkeepLines
keepLines?: boolean
If true, will keep line positions as is in the formatting
OptionaltabSize
tabSize?: number
If indentation is based on spaces (insertSpaces = true), the number of spaces that make an indent.
Options used by
formatwhen computing the formatting edit operations