Register DelimiterAutoCompleter on DotNetSyntaxLanguage?

SyntaxEditor for WPF Forum

Posted 6 years ago by Frederik St-Onge
Version: 17.2.0662
Avatar

I was trying to disable the auto completion of curly brace and found few post talking about this line :

syntaxEditor.Document.Language.RegisterDelimiterAutoCompleter(new DelimiterAutoCompleter()
{
   CanCompleteAngleBraces = true,
   CanCompleteCurlyBraces = false,
   CanCompleteDoubleQuotes = true,
   CanCompleteParentheses = true,
   CanCompleteSingleQuotes = false,
   CanCompleteSquareBraces = true
});

 Unfortunately, i cannot find the method RegisterDelimiterAutoCompleter on both VBSyntaxLanguage and CSharpSyntaxLanguage.

I tried to register it as a Service, but it didn't work. Could someone help me achieve this?

Thank you!

Comments (1)

Answer - Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Frederik,

Check out the "SyntaxEditor / Language Creation Guide / Feature Services / Delimiter Auto-Completer" topic as it has a Note section at the bottom that tells you how to make that RegisterDelimiterAutoCompleter extension method accessible.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.