1、点击菜单中view选项
2、弹出了下拉选择为editor options选项
3、点击editor选项
4、勾选undo after save选项
5、勾选undo after save选项之后,点击ok