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

19,830

Solution 1

I discovered that this was implemented in Spring Tool Suite 3.9, but is not implemented in Spring Tool Suite 4. That is the cause of this issue.

https://github.com/spring-projects/sts4/issues/107

Solution 2

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

Solution 3

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

Solution 4

Check this: for Spring Tool Suite 4

window - preferences - general - key

enter image description here

After press (ctrl+space) for view options

Solution 5

In Eclipse JSF is supported not via STS, but via the Eclipse WTP JavaServer Faces (JSF) Tools.

For STS 4 install the Eclipse Java EE Developer Tools through Eclipse Marketplace.

While installing select check boxes (I guess 3 check boxes) related to JSF Tools.

Share:
19,830
Alex A
Author by

Alex A

Updated on June 15, 2022

Comments

  • Alex A
    Alex A almost 2 years

    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