IntelliJ Idea 12: How do I auto import namespaces?
intellij-idea
Solution
`Code > Optimize Imports` will provide you the behavior you are after. If you want to adjust the settings you can so via `Settings > Editor > Auto Import`.
Problem
In Eclipse, I can hit the Ctrl+Shift+O shortcut to auto import namespaces. How do I do it in IntelliJ IDEA Community Edition?