Auto-import frustration

Is anyone bothered by Auto-import's behavior when you want to comment out a section of code briefly then, when you uncomment the code, you have to work your way through various auto-import acknowledgements? I'm wondering by what heuristics this can be resolved so that you can keep the power of auto-import active. Any suggestions?

Jon

4 comments

Jon Steelman wrote:

Is anyone bothered by Auto-import's behavior when you want to comment out a section of code briefly then, when you uncomment the code, you have to work your way through various auto-import acknowledgements? I'm wondering by what heuristics this can be resolved so that you can keep the power of auto-import active. Any suggestions?

Jon


I have found autoimport doesn't work too well for me personally. I'm
not sure that it is actually a good idea.

0

With the 2 auto-import improvements in the EAP...

  • Don't bother to ask me if there is only one match

  • Move my favorite import to the top of the list when more than one match

...I like it more than ever. However, this one last issue on commenting/umcomment code is the one that still frustrates and should it be addressed, I'd say Auto-imports perfectly suits my needs.

Jon

0

At first, I loved autoimports. Later I realized that they're not that useful when you're working on a team in an hybrid environment (i.e., you're using IDEA and the others are using a certain IDE named after a natural phenomenom).

Currently I've two big peeves with autoimports:

First, modifying imports in files that I didn't want to modify. It would be nice if autoimports would only organize imports in files that you've already edited in the current IDEA session.

Second, the screen 'tilting' is annoying, specially after a few cut/pastes. It would be nice if IDEA could insert imports without tilting the screen. This is specially annoying when the imports are off the screen limits: you'll see the screen tilting for no apparent reason.

Well, I guess I should have opened SCR's for this a long time ago... I think I'll wait for the issue tracker migration, now.

0

As to your point about tilting, agreed and submitted that one October:
http://intellij.net/tracker/idea/viewSCR?publicId=38359
I believe it is because the changing of the imports dynamically above your current code viewport and I expect it is especially bad if you have imports folded as I do because it seems to unfold, make the change, then refold causing quite a large tilting. Yep, fixing that would be nice.

Jon

0

Please sign in to leave a comment.