How can I control whether formatting uses spaces or tabs?

SyntaxEditor for WPF Forum

Posted 13 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 13 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 (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.