"Organize Imports" keeps removing my imports in Flash Builder
I often use the shortcut for Organize imports (CMD - SHIFT - O) in Flash B开发者_StackOverflow社区uilder. Some times Flash Builder just removes all my imports (not the SDK) and I have to add them manually. Anyone else who have had this problem?
Yes, it's pretty annoying, too. You can fix it, though. In preferences, go to "Flash Builder" -> "Editors" -> "ActionScript Code". Uncheck the box labeled "Remove unused imports when organizing".
Enjoy!
I have this issue when I allow it to collapse imports into an import something.*
statement - it seems to incorrectly think that some imports are encapsulated by the *
when they're really not.
Disabling that option by setting
Windows --> Options --> Flash Builder --> Editors --> ActionScript Code --> Organize Imports --> Number of imports needed for...
to 99
fixed it for me.
精彩评论