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
Optional
eol
eol?: string
The default 'end of line' character. If not set, '\n' is used as default.
Optional
insertFinalNewline
insertFinalNewline ?: boolean
If set, will add a new line at the end of the document.
Optional
insertSpaces
insertSpaces ?: boolean
Is indentation based on spaces?
Optional
keepLines
keepLines ?: boolean
If true, will keep line positions as is in the formatting
Optional
tabSize
tabSize ?: number
If indentation is based on spaces (insertSpaces
= true), the number of spaces that make an indent.
Options used by
format
when computing the formatting edit operations