'How do I properly wrap code with matching pairs in intellij?

So I'm pretty sure I'm using autopairs like a newb in IntelliJ.

Let's say I want to change this:

$!processed-content.process.embed-youtube;

to this:

$!processed-content.process(embed-youtube);

What I do is delete the last . and then insert a ( and the second one gets generated. So now I have this:

$!processed-content.process()embed-youtube;

So then I have to delete the second paren manually, jump to the semi and insert it.

Is there a way to move the embed-youtube bit into the parens more quickly?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source