There are times that we need to feel use a keyboard shortcut or any other quick and simple way to parenthesize a part of an expression that is already typed.

Is there any way to do that?

For example, here is an expression.

a + b

Then how to parenthesize that without typing each parenthes in order to make it be the expression below.

(a + b)^2

Thank you.

  • 7
    $\begingroup$ See here. $\endgroup$ – march Jan 12 '16 at 4:49
  • $\begingroup$ If it's simply for convenience you might find the "home" and "end" buttons useful for jumping between start and end of a line. $\endgroup$ – V.E. Jan 12 '16 at 6:26
  • $\begingroup$ Or if you prefer shortcuts: mathematica.stackexchange.com/q/34159/5478 $\endgroup$ – Kuba Jan 12 '16 at 6:29
  • $\begingroup$ @V.E.@Kuba Thank you for your advice. $\endgroup$ – Smart Humanism Jan 15 '16 at 10:16

The way that I usually do this, is use the keyboard to select the text,

enter image description here

hit Ctrl+6 to give it the superscript format,

enter image description here

then hit delete to get rid of the superscript box.

enter image description here

End result: highlighted text is now wrapped in parentheses.

| improve this answer | |
  • $\begingroup$ Wow, what a brilliant method! Thank you very much for the advice! $\endgroup$ – Smart Humanism Jan 15 '16 at 10:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.