Improving Eclipse autocompletion?

前端 未结 6 1954
长发绾君心
长发绾君心 2020-12-13 20:00

Currently the Eclipse autocompletion seems only to be triggered after a dot or on parameters, I want to use it for variables too, e.g. if I have

Strin

相关标签:
6条回答
  • 2020-12-13 20:29

    In addition to the suggestions above, did you try ALT + / it does incremental matching? No?

    0 讨论(0)
  • 2020-12-13 20:31

    You can press "t" and then Ctrl+Space.. is it?

    0 讨论(0)
  • 2020-12-13 20:39

    If you press ctrl+space key combination, eclipse will show you the code assist window.

    Type t and then hit ctrl+space, it will show you possible matches

    0 讨论(0)
  • 2020-12-13 20:45

    In Eclipse

    Window--->Preferences---> search for Content Assist under Content Assist go for Advanced
    and check the Java Praposals.
    

    done.

    0 讨论(0)
  • 2020-12-13 20:49

    ctrl + space

    0 讨论(0)
  • 2020-12-13 20:52

    First of all, thanks for all the replies. They are correct, however you have to press the key combination each time. Here's how it's done automatically:

    That plug-in is not necessary any more. Just go to Preferences > Java > Editor > Content Assist and paste:

    ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.
    

    into the "Auto activation triggers for Java:" field.

    This simply triggers auto activation after any English alphabet character and after dot. https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157#c12 Works fine :-)

    Hint: You probably want to additionally set the auto activation delay to 0, at least if you are used to visual studio ;-)

    0 讨论(0)
提交回复
热议问题