I don't think it's a bug, but I'd like the Organize Imports action to respect an .importorder file from Eclipse. Sorry ahead of time if this is the wrong place to post this.
.importorder file is ignored
.importorder file is respected
From what I can tell, eclipse can __export__ xyz.importer files, but doesn't load them automatically. In Eclipse, import order is configured through the org.eclipse.jdt.ui.importorder preference in .settings/org.eclipse.jdt.ui.prefs, but this is not supported by jdt.ls/vscode-java.
Do you need a 3rd party plugin to have .importorder files being loaded in Eclipse?
Do you need a 3rd party plugin to have .importorder files being loaded in Eclipse?
Apologies, if I misunderstand your question here, but it sounds like you're asking if I'm in need of a plugin for Eclipse to load these files? If so, sure, I'll pass it on to the team I'm currently on, and keep it in mind if I start doing java development in Eclipse.
Thanks!
So while .importorder files are still not supported (I still need more info on their usage), a new java.completion.importOrder preference is available. A package or type name prefix (e.g. 'org.eclipse') is a valid entry. An import is always added to the most specific group. Default value is:
`java.completion.importOrder`: ["java", "javax", "com", "org"]
Most helpful comment
So while .importorder files are still not supported (I still need more info on their usage), a new
java.completion.importOrderpreference is available. A package or type name prefix (e.g. 'org.eclipse') is a valid entry. An import is always added to the most specific group. Default value is: