Surround selection in IntelliJ IDEA

It’s pretty simple:

  1. You select text.
  2. You type opening brace or quote.
  3. You see your selection wrapped in that quote.

If your selection is already enclosed by quotes or braces, they will be replaced automatically. It plays nice with IntelliJ’s smart selection, and saves you from tedious routine job when you need to convert single quotes to quotes and vice-versa.

Here is the list of supported characters:

  2. Braces: (, [, {, <.

Yes, backtick and angle-brackets too!



I have warned you!