How can I control whether formatting uses spaces or tabs?

SyntaxEditor for WPF Forum

Posted 12 years ago by Craig - Varigence, Inc.
Version: 11.1.0542
I'm using the syntax editor with the XML language add-on and I have a format function as follows:

private void OnFormat()
    var textFormatter = syntaxEditor.Document.Language.GetService<ITextFormatter>();
    if (textFormatter != null)
How can I control whether the TextFormatter uses spaces or tabs when indenting?



Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Craig,

I believe the document.AutoConvertTabsToSpaces property controls that.

Actipro Software Support

The latest build of this product (v22.1.3) was released 16 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.