Can't restore file original state by undo
PhpStorm is always formatting the code by adding extra line at the end, white spaces and who knows what else. I don't need it at all but at least hitting undos (ctrl+z) get the original state. I always have to hit git rollback (ctrl+alt+z) to get the file original state which is very risky 'cause I may loose my real modifications.
Can I achieve that using undo function restore the file original state?
请先登录再写评论。
Unfortunately, there is no separate action like “Undo rearrange code”, just a regular last action Undo.
But usually, IDE should not reformat code unless you invoke the corresponding action. I wonder if extra lines are being added on save because of this option: