
I'm using the syntax editor with the XML language add-on and I have a format function as follows:
How can I control whether the TextFormatter uses spaces or tabs when indenting?
Thanks,
-Craig
private void OnFormat()
{
    var textFormatter = syntaxEditor.Document.Language.GetService<ITextFormatter>();
    if (textFormatter != null)
    {
        textFormatter.Format(syntaxEditor.Document.CurrentSnapshot.SnapshotRange);
    }
}
Thanks,
-Craig
