法一:只对当前文件有效

菜单栏   ->   View   ->   Active Editor   ->   Use Soft Wraps;

pycharm自动换行对所有文件和对当前文件有效

法二:如果想对所有文件都有效

1、勾选:在setting里面进行操作:File   ->   Setting   ->   Editor   ->   General    ->   Soft-wrap these files

2、在Soft-wrap these files中添加“ ;*.py”如图

pycharm自动换行对所有文件和对当前文件有效

相关文章:

  • 2022-12-23
  • 2021-06-28
  • 2021-07-30
  • 2021-08-28
  • 2021-06-03
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-06-18
  • 2021-06-02
相关资源
相似解决方案