Many times as I am typing a wor开发者_JS百科d in android code in Eclipse, my computer freezes for up to 30 seconds while Eclipse trys to find all possible commands to autocomplete my typing. Also, everytime I type a quote charactor " autocomplete types another one that I then have to erase. How do I defeat the autocomplete option that ironically slows me down?
There's a bug in Eclipse 3.6.1 that affects code completion (Code Assist). There is supposed to be a patch that will be in 3.6.2 when it's out, but this post from the Android Dev Google group shows a work around that patches 3.6.1. I've tried it and it makes a world of improvement.
https://groups.google.com/d/msg/android-developers/El-6ufT3F7E/uhxmLoUqnQ8J
It's a common problem with Eclipse, at least recently. I struggle with the same though I'm not an Android developer, but I use 3.6.1 which is fairly old.
Options to try include:
- Turn it off completely (not practical, IMHO)
- Filter packages you don't care about (java->appearance->type filters)
- Have less dependencies in your project.
- Turn of Mylyn if you don't use it.
- Make sure you have enough heap space in Eclipse.
精彩评论