Skip to content

applyEditorConfigStyle

applyEditorConfigStyle(content, properties): string

Defined in: text-style.ts:67

Rewrites content so it satisfies the properties given.

Only the properties present are applied; the rest are left exactly as they are. indent_style and indent_size are deliberately not applied here — re-indenting requires knowing the language’s own nesting, which no text-level rule can supply without corrupting strings and here-docs.

string

EditorConfigProperties

string