Auto Format erases code

I've noticed that the Auto Format tool option can erase code when a parentheses or bracket is missing. Bug or feature?

Bug. The auto-format code comes from an old version of Processing. They've since fixed a lot of the bugs in the Processing auto-format, but I haven't had a chance to port the improvements over to Arduino yet. It's on the todo list.