Disable completion for the round brackets

SyntaxEditor for WPF Forum

Posted 10 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 10 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 10 years ago by Ilia Korjoukov
Avatar

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

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.