handle logic to auto close and delete brackets#501
handle logic to auto close and delete brackets#501lunargon wants to merge 4 commits intomicrosoft:mainfrom
Conversation
|
@microsoft-github-policy-service agree |
|
Could this feature be made optional? For me this is one of the most annoying features in other editors, frequently causing me to write things like Some more general remarks:
|
|
@Consolatis You can try my ver first. Because delete only auto delete if between that is empty.
My auto just delete with not thing between open and close. Can you check that first. If still annoy for you I will add some change to make that to optional or remove that feature. |
|
I'm not entirely sure about merging this logic just yet without having a settings model allowing users to turn this behavior off. I'll continue to let this PR sit for a while longer but try to keep it in the back of my mind. |
|
@lhecker If needed, I’ll update with the settings ( from project) later. I see that my PR is currently out of date with the main branch. |
Handle Auto Close Parentheses, Braces, Brackets
To solved #488
I add logic to handle:
Auto close: If you type '(' or '[' or '{' with have auto close that and cursor will go between these.Auto delete:For example: You have (|) ( this is parentheses with cursor between, if you delete - type
BACKboth open and close will be delele)