Possible to disable clean up of Wildcard imports? #2990
-
If I have organize import active in all wildcard imports are fixed to include the correct class or static method instead, is it possible to keep them as wildcards instead of expanding the imports? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Currently the best solution is to set "java.sources.organizeImports.starThreshold" and "java.sources.organizeImports.staticStarThreshold" to a low value. But it's not perfect as it would collapse discrete imports you might want to keep into star imports |
Beta Was this translation helpful? Give feedback.
-
Wow I write like an idiot... What I wanted to write was "If I have organize imports active and organize imports in a java class where I want wildcard imports to reduce the amount of import lines how do I configure the organizer to not remove the wildcards? This would include static imports and normal imports." |
Beta Was this translation helpful? Give feedback.
Currently the best solution is to set "java.sources.organizeImports.starThreshold" and "java.sources.organizeImports.staticStarThreshold" to a low value. But it's not perfect as it would collapse discrete imports you might want to keep into star imports