There should be an option to skip formatting the code on save if the file contains errors.
There are many kinds of errors like missing braces that may complete break formatting on the whole file.
(if you wonder why save file with errors, there may be many reasons; first, the AngularIDE frequently does not display all errors correctly until the file is saved, second, when working on multiple files you may want to see other file errors to take a decision on a fix).
Another issue is that broken by many errors format frequently does not go to undo as an atomic operation, CTRL+Z then restores line by line.
Yet another very annoying issue started to happen in recent months: sometimes (frequently enough), after fixing errors, the editor still shows apparently non-existent errors. Saving the file suddenly formats a line weirdly, inserting spaces in the middle of words or alike. Fix and save – this happens again. The only cure, in this case, is to cut and paste back the offending line, then error suddenly disappears and formatting works correctly.
-
This topic was modified 6 years, 6 months ago by Fedor Losev.
-
This topic was modified 6 years, 6 months ago by Fedor Losev.