keskiju / autocomplete-java

Java autocompletion for Atom editor
https://atom.io/packages/autocomplete-java
MIT License
40 stars 9 forks source link

Change placement of import statements #35

Open dylanm312 opened 8 years ago

dylanm312 commented 8 years ago

I want my imports to be declared outside of the class, but autocomplete-java only wants to put them inside the class. Is is possible to change this behavior so that the imports will be added outside the class?

keskiju commented 8 years ago

This is a known issue. All java source files usually contain a package declaration but you probably don't have one in your file. Add a package declaration or at least couple of empty lines at the beginning of java source file and it should work fine. See the preview animation.

dylanm312 commented 8 years ago

Any update on fixing this?

keskiju commented 8 years ago

Soon... after summer holiday.