Skip to content
Advertisement

Sorround highlighted word with symbol Android Studio

If I have a word highlighted in android studio, is there any shortcut to surround that word with symbols e.g quotation marks or brackets?

E.G From John to “John” or Mary to (Mary)

Am aware of only Ctrl + Alt + T which surrounds the word with some functions and expressions from the options.

Advertisement

Answer

It’s a configuration that should be on by default, don’t know why you don’t have it.

preferences/Editor/Smart Keys

Enable the option (check the checkbox)

Surround selection on typing quotes or braces

In the screenshot below is the seventh option from top to bottom.

enter image description here

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement