Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make Eclipse intellisense/auto-suggest automatic for locally scoped and member variables/methods

Is there any way to make the auto-suggest drop down list appear for locally scoped variables and local member variables/methods without having to push ctrl+space? Like Visual Studio does? It appears automatically for members of objects after getting as far as typing 'object.'

I'm finding myself typing a couple of letters and hitting ctrl+space straight away when it would be far more efficient for me if I could see the list to know if typing more letters, or tapping the down key was going to be quickest...

I can't find this option in the settings so was wondering if there's some other way of achieving what I'm after.

Thanks, Sam.

like image 532
Garcon Avatar asked Oct 10 '10 15:10

Garcon


People also ask

How do I autocomplete variables in Eclipse?

you type the first letter/letters and when you click ctrl + space you get a list of all the variables that start with that letter/letters. it's an auto-complete tool...

Does Eclipse have autocomplete?

Microsoft Visual Studio has a famous feature called IntelliSense. Eclipse has a similar built in feature called "Code Assist" which I find very useful. Code Assist is triggered automatically in a number of situations (for example, typing the "." after a variable name or class name).


2 Answers

You can put whatever characters you want in the activation trigger box (default is just a single "."):

alt text

like image 103
JRL Avatar answered Nov 08 '22 08:11

JRL


Go to Window -> Preference -> Java -> Editor -> Content assist

"Auto activation -> auto activation for trigger for Java:" then mentioned the character on which you want to get pop up. then ok.

like image 23
User_86 Avatar answered Nov 08 '22 08:11

User_86