对指定文件自动换行:View -> Active Editor -> Use Soft Wraps。 对所有文件都起到效果,就要在setting里面进行操作。Perferences-Editor-General -> Soft-wrap these files选中并添加*.py