Formatting undos code folding
Brought to you by:
ernestpasour
When I fold (some of) my code (functions) using the arrows on the left and then format my code, all folds are expanded and thus revealing, again, all code. Any way to respect folded code, but still format it? Both are extremely useful, but they don't work well together.
Hmm....normally editing a block of code will cause the edited code to unfold (I think). However, when I tried formatting in FlashBuilder 4.5, I'm not seeing the code blocks unfold if spaces are added/removed. This makes me optimistic that many formatting changes might not expand the text.
However, I expect that any operations that make big changes to the file (reordering functions) or changes non-whitespace (adding/removing braces) will probably not play nicely with maintaining folding state.
What formatting options are you using?