Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autocomplete in eclipse like in visual studio

Tags:

java

eclipse

I know there is a Ctrl+Space dialog box that show the methods options that I have. But if i have a method that I not fully remember the name of it and I remember only a part of the name.

For example: There is a big static class which contains tons of methods starting with "add"

add1_Buffer, add2_Render, add7_Function and so on.. now I don't remember the fully name but i remember only "Buffer".

so I want to type "buffer" press Ctrl+Space and get the "add1_Buffer" method and all the names that contain the name "buffer" in it.

Edit: By the way, i need it on the OpenGL api where there are tons of functions and i am not familiar with all of them i know only keywords, I was searching for something like in visual studio that is really fast and easy.

like image 713
Reloder Avatar asked Aug 14 '14 13:08

Reloder


People also ask

How do I turn on 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 autocomplete in Visual Studio?

The suggestion list of Automatic completion appears as soon as you start typing a new identifier. The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space .

Does Visual Studio code have autocomplete?

Visual Studio Code IntelliSense is provided for JavaScript, TypeScript, JSON, HTML, CSS, SCSS, and Less out of the box. VS Code supports word based completions for any programming language but can also be configured to have richer IntelliSense by installing a language extension.

How do I autocomplete variables in Eclipse?

it only works after you have created some variables. 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...


2 Answers

If you start typing the a in add1_Buffer and then an upper B and then press Ctrl + Space you will find the correct method.

You can then continue writing the word Buffer if there are more methods starting with add and then having an upper B.

enter image description here

enter image description here


This means that you'll have to remember at least the first part of your method but hopefully you do.

like image 182
maba Avatar answered Oct 02 '22 20:10

maba


Add the CodeRecommenders plugin to your installation. That has a subwords completion, which the normal JDT code completion does not have.

enter image description here

like image 42
Bananeweizen Avatar answered Oct 02 '22 19:10

Bananeweizen