I've filed a bug for the import behaviour, because it correctly loses imports sometimes.. I'm going to add a comment to that, as I'm pretty sure I know what it is now..
If there are curly bracket problems, or you are editing code that while you're file is in an invalid state (like moving a method signature up or down - anything that results in an invalid statement.. then appcode will remove imports from any code that was invlaidated by the edit - I've just seen a big class I use for mappings, lose 10 imports due to this..
there is a question here I promise.
I personally NEVER want appcode to remove any imports unless I press CTRL+ALT +O, to manually say "clean up my imports please"..
Is there a setting for that?
Auto add imports. yes please, do it as I type, offer me alt enter hints.
Auto remove imports. No - never ever ever ever do that.
Does that already exist? If so, how do I set this?