Auto-delete closing brackets after deleting opening brackets.
-
Here’s what I mean.
Suppose I have this: ‘()’
If I delete ‘(’, ‘)’ should also be deleted.I’ve searched for this for Notepad++ and found nothing. Perhaps, I’m not just seeing it?
-
You mean as consecutive characters you have
(
and then you have)
and when you delete the(
you want the)
deleted. Hmmm. I would just hit delete twice and move on with life. -
@alan-kilborn said in Auto-delete closing brackets after deleting opening brackets.:
I would just hit delete twice and move on with life.
Whilst I would agree with that I wonder as the OPs question does have some merit. In Notepad++ when you move around a file/tab with
(
,{
, or even[
and of course the corresponding closing brace the pairs are highlighted. You can even use the shortcut Ctrl-B to jump to the matching brace of a pair.It doesn’t seem to be too large a jump to think that perhaps deleting as a pair does make some sense. If the other brace of the pair is some distance (in number of characters) it might be possible to delete 1, then forget exactly where it’s pair was and maybe even delete the wrong one. Currently we can select all between matching braces (Ctrl+Alt+B) and I think it wouldn’t be too much of a leap to think that maybe an option to delete pairs of braces together would be possible.
Obviously a feature request would be needed and @Ronaldo-Dimaano is welcome to sumbit one using the details in the FAQ section here if they wished to consider that. If it was implemented I would suggest the Ctrl+Alt+B become a toggle to select first all between braces, then all including braces on the second hit of the shortcut keys and then only the braces on a third hit of the shortcut keys, just a thought.
Terry
-
@terry-r ,
I agree with your analogy, but as the OP has “shown” what he starts and wants to end with, Alan’s answer is germane to the question at hand, whilst your’s evokes a new creature feature. :-)