Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl-Space in Eclipse without Pressing Ctrl-Space

Tags:

eclipse

I've just started using Eclipse and I noticed that when I start typing a local variable name it doesn't come up with suggestions like Visual Studio does until I press Ctrl+Space. Is there any way to get it to do this automatically? I find Ctrl+Space an awkward key press.

like image 384
Brandon O'Rourke Avatar asked Dec 24 '09 22:12

Brandon O'Rourke


People also ask

How do I get auto suggestions 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 turn off autocomplete in eclipse?

Open menu Window, then Preferences. Follow path Java -> Editor -> Content assist. Now mess around with the settings to find your ideal setup. I believe what you'll want is to deactivate Insert single proposals automatically.


1 Answers

These bugs (and a solution if you use Eclipse >3.4) may be of interest to you:

A. Allow more character triggers as @Samuel said (fixed in 3.4 onwards):

https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157 add the characters below to content assist in Preferences

Change the default in Auto activation triggers for Java to ._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

B. Allow content assist everywhere automatically (not fixed):

https://bugs.eclipse.org/bugs/show_bug.cgi?id=101420

like image 184
Mark Pope Avatar answered Oct 09 '22 23:10

Mark Pope