Autocomplete in eclipse, as in visual studio

I know that there is a Ctrl + Space dialog box that shows the parameters of the methods that I have. But if I have a method that I do not fully remember his name, and I remember only part of the name.

For example: there is a large static class containing many methods starting with "add"

add1_ buffer , add2_Render, add7_Function, etc. now I don’t remember the full name, but I only remember β€œ Buffer ”.

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

Edit: By the way, I need this on the OpenGL api, where there are many functions, and I am not familiar with all of them, I only know the keywords, I was looking for something like a visual studio, which is really quick and easy.

+5
source share
5 answers

Add the CodeRecommenders plugin to your installation. It has subtitle completion that does not have normal JDT code completion.

enter image description here

+2
source

If you start typing a into add1_Buffer , and then top B , and then press Ctrl + Space, you will find the correct method.

You can then continue to write the word Buffer if there are several methods starting with add and then with upper B

enter image description here

enter image description here


This means that you will need to remember at least the first part of your method, but I hope you do.

+3
source

Use the search. From the Search menu at the top of the window, select Java Search. You can limit the search to methods and use wildcards to search for *Buffer* if you know that Buffer is in the method name.

0
source

The keyboard shortcut Ctrl + O gives the outline of the current source. This way you can browse and search all your methods in your current class. Use wildcards if necessary.

0
source

It just meets you: alt+/ , just replacing ctrl+space

There is currently no direct way to do this in eclipse. But I found that they are useful. here

This message resembles your view of it . Similar here

-1
source

Source: https://habr.com/ru/post/1200325/


All Articles