I found other related threads but none that specifically address removed unused imports. I added several unused imports that I would like to later use. After saving and compiling my project, I find that some that are used are consolidated to one line, while others that aren't used are removed completely. Can I tell eclipse to never remove imports?
As far as I'm aware Eclipse doesn't do anything with imports unless you specifically tell it to do so (by pressing Ctrl-O, I think, or some similar key sequence). But I could be wrong... can you replicate a sequence of events in which Eclipse cleans up your imports without you specifically telling it to do that?
Ctrl+O is for quick outline.
Ctrl+Shift+O will organize the imports (and remove unused ones as per your settings)
I am not running a vanilla flavor of Eclipse right now. Look for organize imports and code formatting options under Eclipse preferences
I see. I must have tried CTRL + O before I verified they were removed. They were probably minimized then I inadvertently removed them. I just tried to reproduce my problem and couldn't do it so all is well. Thanks!