
I think it would be common to have something like <element>|</element> and want to input a { at the cursor (|) position. However, this doesn't work, and one must manually close the cursor. This works on an empty line or any line where there is whitespace to the right of the cursor. It even works in some pretty odd cases.
See https://code.visualstudio.com/api/language-extensions/language-configuration-guide#autoclosing-before for an explanation and how to override the behaviour.
I think it would be common to have something like
<element>|</element>and want to input a{at the cursor (|) position. However, this doesn't work, and one must manually close the cursor. This works on an empty line or any line where there is whitespace to the right of the cursor. It even works in some pretty odd cases.See https://code.visualstudio.com/api/language-extensions/language-configuration-guide#autoclosing-before for an explanation and how to override the behaviour.