Demo Site

Wednesday, May 27, 2009

Automatic auto complete in eclipse -- how coding should be!!!!

This infuriated me for a while. When coding in eclipse you have a very useful content assist, but you have to press ctrl+space or "." to get it to show. You can add 3 additional characters to the auto activation triggers, but thats not all that helpful either.

To get around this, just export your eclipse preferences, then do a find/search in the prefs file for "auto" and you'll find the entry for auto activation. Change the value to
"abcdefghijklmnopqrstuvwxyz." and prepare to be amazed... just re-import your preferences and now you'll get content assist when you need it.. as soon as you start typing!!

Note: You won't see this entry

/instance/org.eclipse.jdt.ui/content_assist_autoactivation_triggers_java=abcdefghijklmnopqrstuvwxyz.

unless you've modified your key preferences in some way, since eclipse won't export the default settings.

This makes writing code way faster, not to mention easier on the old fingers/wrists-

Also, here's how I've got the rest of the autocomplete settings configured

Labels

Labels

Labels