
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
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
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,
});
Thank a lot, it's exactly what I wanted.
Please log in to a validated account to post comments.