Auto-removing import statements

I had a fiddle with the Project Code Style, and the Inspections in 5.1 (Windows), and now every so often the IDEA editor will automatically remove some of my imports (I think it (erroneously at times) assumes that they are redundant).

For the life of me, I can't find what button I pressed to make it do that - can anyone enlighten me?

2 comments
Comment actions Permalink

Hello Tony,

I had a fiddle with the Project Code Style, and the Inspections in 5.1
(Windows), and now every so often the IDEA editor will automatically
remove some of my imports (I think it (erroneously at times) assumes
that they are redundant).

For the life of me, I can't find what button I pressed to make it do
that - can anyone enlighten me?


Settings | Editor | Behavior | Imports, Optimize imports on the fly.

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Excellent, thanks for that.

0

Please sign in to leave a comment.