Function LineGetter.enableAutoCloseBrackets
Enables automatic closing of brackets like (, {, and [ when the user types.
Specifically, you subclass and return a string of the completions you want to
do, so for that set, return "()[]{}"
string enableAutoCloseBrackets();
If you subclass this and return anything other than null, your subclass must also
realize that the line member and everything that slices it ([tabComplete] and more)
need to mask away the extra bits to get the original content. See [PRIVATE_BITS_MASK].
line[] &= cast(dchar) ~PRIVATE_BITS_MASK;
Returns
A string with pairs of characters. When the user types the character in an even-numbered position, it automatically inserts the following character after the cursor (without moving the cursor). The inserted character will be automatically overstriken if the user types it again.
The default is return null, which disables the feature.
History
Added January 25, 2021 (version 9.2)