开发者

"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?

"Organize Imports" keeps removing my imports in Flash Builder


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜