Disable completion for the round brackets

SyntaxEditor for WPF Forum

Posted 6 years ago by Ilia Korjoukov
Version: 14.1.0601
Avatar

Hi!

I would like to ask whether there is a way possible disable the C# SyntaxEditor completion for the round brackets specifically?

Thanks in advance!

Ilia

Comments (2)

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

Hi Ilia,

Yes, you can do that by creating the language and then doing this prior to setting the language to the document:

language.RegisterDelimiterAutoCompleter(new DelimiterAutoCompleter() {
	CanCompleteParentheses = false,
	OpenCurlyBraceTokenId = CSharpTokenId.OpenCurlyBrace,
	OpenSquareBraceTokenId = CSharpTokenId.OpenSquareBrace,
});


Actipro Software Support

Posted 6 years ago by Ilia Korjoukov
Avatar

Thank a lot, it's exactly what I wanted.

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.