Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Tool Suite AutoComplete / Content Assist not working - No proposal kinds present in settings

I'm trying to use Spring Tool Suite 4 with Eclipse Oxygen, but the Auto Complete / Content Assist features specific to Spring Tool Suite do not seem to be present. The normal eclipse content assist appears, but nothing specific to STS will appear.

I followed some of the other helpful posts on StackOverflow, and was pointed to make sure that the Spring proposal kinds in Preferences -> Java -> Editor -> Content Assist -> Advanced are selected. However, upon doing this I discovered that there are no Spring proposal kinds in that section. I am using STS 4, but for some reason the proposal kinds do not appear in that list.

How can I fix this and get content assist / autocomplete to work for Spring Tool Suite 4?

Note: I have tried the solutions for the following StackOverflow articles, but none of them have worked for one reason or another. They all seem to assume that the proposal kinds are present where they should be. Content autocomplete in spring tool suite 4 Eclipse Spring Tools missing content assist/ autocomplete Spring tool suite can not automatically show fields variable name suggest?

Here's the list of what appears in for the proposal kinds in my IDE - note that no Spring related options appear.

screenshot

like image 567
Alex A Avatar asked Dec 02 '22 10:12

Alex A


2 Answers

While upgrading from lower version to sts-4 faced the same issue.

Found this thread and followed the instruction given by vvalencia-cl then the issue got fixed. https://github.com/spring-projects/sts4/issues/82

Solution :

Go to Preferences -> Java -> Editor -> Content Assist -> Advanced, and enabled:

  • Java Proposals
  • Java Type Proposals

and then click Apply and close

enter image description here

like image 108
Chandra Avatar answered Dec 04 '22 07:12

Chandra


Go to Window tab at the top -> Preferences -> Java -> Editor -> Content Assist. Now find Auto activation triggers for Java usually at the bottom and now in its textbox paste the following value:

.@(#&$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
like image 25
Prajwal Avatar answered Dec 04 '22 06:12

Prajwal