Fix Python – How to surround selected text in PyCharm like with Sublime Text

Question

Asked By – Alexis Benoist

Is there a way to configure PyCharm to be able to surround selected code with parenthesis by just typing on the parenthesis key, like when we use SublimText 2?

Now we will see solution for issue: How to surround selected text in PyCharm like with Sublime Text


Answer

I think you want something like

Settings | Editor | General | Smart Keys -> Surround selection on typing quote or brace

This question is answered By – Arnaud P

This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0