sublime中选中部分代码时输入左引号或左括号时会自动给选中部分加上引号,很方便,但这个功能在pycharm里是默认关闭的,打开的方式是:

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

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

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

相关文章:

  • 2021-05-17
  • 2021-11-23
  • 2021-04-10
  • 2021-07-05
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
猜你喜欢
  • 2021-04-06
  • 2022-01-02
  • 2021-07-11
  • 2021-05-19
  • 2021-11-27
相关资源
相似解决方案