Skip to content

detectEditorConfigStyle

detectEditorConfigStyle(content): DetectedStyle

Defined in: text-style.ts:31

Reports which EditorConfig properties content already satisfies.

Mixed line endings leave endOfLine unset rather than guessing a winner. trimTrailingWhitespace is reported as true only when no line has trailing whitespace — the property describes the desired end state, so text that already complies reports the value that would keep it that way.

string

DetectedStyle