How to surround selected text in PyCharm, like using Sublime Text

Is there a way to configure PyCharm to surround the selected code with a bracket just by typing the bracket key, for example, when we use SublimText 2?

+57
python sublimetext2 pycharm
Nov 26 '14 at 15:04
source share
2 answers

I think you want something like

Settings | Editor | General | Smart Keys Settings | Editor | General | Smart KeysSurround selection on typing quote or brace

+120
Nov 27 '14 at 10:39
source share

PyCharm 4.0 has the ability to Surround With... by selecting a code snippet and clicking

ctrl + alt + T

Option 1 should provide you with the functionality you are looking for:

PyCharm Ctrl + Alt + T

+8
Nov 27 '14 at 4:24
source share



All Articles