SnippetsComponent.formatSync

Will format the code passed in synchronously using dfmt. Might take a short moment on larger documents.

class SnippetsComponent
string
formatSync
(
scope const(char)[] snippet
,
string[] arguments = []
,)

Return Value

Type: string

the formatted code as string or unchanged if dfmt is not active

Meta