Quick question on Flex/Action Script - Excessive imports
I play around a lot when I'm programming in FLEX, mostly cause I'm new and I don't know the best way to do things. Consequently I end up importing a lot of things. I end up throwing out the code and realize later that the imported开发者_JS百科 class is still at the top of my script. Now I have a ton of them. Is there a quick and easy way to see which ones are still being used?
Thanks,
~Mike
ctrl + shift + o will clean all unnecessary imports ( in eclipse )
If you're using Flex Builder, you can go to Source -> Organize Imports and it will remove anything you don't need.
精彩评论