Delete Highlighted Parentheses?

Here's something I've always wondered:

Let's say I have a condition written like this:

( ( condition == true ) )

And I highlight the first (outer) pair of parentheses. Is there a quick-key to delete them? If not, having something like that would be nice...

2 comments
Comment actions Permalink

The way I deal with this is with Ctrl-W (extend selection):

Place the cursor inside, hit Ctrl-W until the inner braces are selected,
then hit Ctrl-C to copy, hit Ctrl-W one more time to select the outer
braces, and tehn Ctrl-V to paste. Voila.

I use this for "un-bracing" code blocks as well, as it functions as an
"un-surroundwith".


"MichaelDBang" <no_reply@jetbrains.com> wrote in message
news:7144732.2281208365939993.JavaMail.jive@app4.labs.intellij.net...

Here's something I've always wondered:

>

Let's say I have a condition written like this:

>

( ( condition == true ) )

>

And I highlight the first (outer) pair of parentheses. Is there a
quick-key to delete them? If not, having something like that would be
nice...


0
Comment actions Permalink

That will take a little bit to get used to (and involves more keystrokes than it should, imo), but yes... that does work! Thanks :)

0

Please sign in to leave a comment.