pycharm技巧:给选中的代码添加括号/引号

这个功能在pycharm里是默认关闭的,打开的方式是:

File->Settings->Editor->General->Smart Keys,找到Surround selection on typing quote or brace 点击即可。

File->Settings->Editor->General->Smart Keys 里也可以对是否自动添加右括号等进行设置,如下图。

猜你喜欢

转载自blog.csdn.net/qq_17513503/article/details/85933785