Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tab to select autocomplete item in eclipse?

I can't find either the term autocomplete or intellisense in Preferences->General->Keys in Eclipse 3.6.2.

I don't want to press enter to select an autocomplete item when I write code. Can I configure Eclipse to accept an autocomplete item with the tab button?

like image 865
Carl R Avatar asked Apr 10 '11 11:04

Carl R


People also ask

How do I open an autocomplete in eclipse?

Step 1: Open your Eclipse or Spring Tool Suite, then go to the Window > Preferences as shown in the below image. Step 2: In the next screen go to the Java > Editor > Content Assist > Auto activation triggers for Java as shown in the below image.

How do I show tabs in eclipse?

Check the option " General > Editors > Text Editors > Insert spaces for tabs ": if unchecked, it will display tabs, not space.


1 Answers

I believe you are looking for "word completion" Left Alt + / though you can change it in "Preferences->General->Keys" to be whatever key combo. Pressing / multiple times cycles through the different suggestions. It's not very intelligent. For example if you have String apple; and double apps; and you type double x = a and then Alt + / eclipse might suggest apple instead of apps, even though apple is an String.

Edit: Looks like it's ctrl + / on some computers.

like image 89
Ben Avatar answered Sep 23 '22 22:09

Ben