Eclipse shows no content assist context menu (popup box) for HTML files but works fine for Java files

183 Views Asked by At

I use Eclipse 2022-12 with Windows 10 for a Spring Boot project with Maven.

The context menu (the popup box that automatically shows up when you type or press Strg+Space) for autocompletion (java template proposals / content assist) in the editor shows up perfectly fine in Java files (strg + space works too).

I have HTML files that open with the HTML-editor in Eclipse, and the syntax highlighting is fine. But the context menu for code suggestions (auto completion suggestion or html template proposals) simply does not show up, not even with strg+space.

How can I enable the popup for the auto suggestions in HTML files again?

For clarification: It does not show the context menu box at all. Other users had problems where there were no suggestions (template proposals) inside the context menu, but for me the popup does not show up at all for HTML files, but for Java files it works completely fine.

I already tried to change the settings for the html editor under Window > Preferences > Web > HTML Files > Editor > Content Assist. Settings: "Automatically make suggestions" - activated "Auto activation delay" - 0 "Prompt when these characters are inserted" - "=<" The categories for HTML Tag proposals and all the other elements are all activated in booth "Default Proposal Categories" and "Content Assist Pages".

I also de- and reinstalled Eclipse Web Developer Tools and HTML Editor in the Marketplace.

I also opened a new dynamic web project without Maven or Spring Boot, here the HTML editor also does not show the content assist context menu.

I also created a new Workspace, same result.

Edit

I found a workaround...but this does not answer my question, because I think it is not correct that Eclipse does not show me the popup-box inside the HTML-Editor.

Eclipse automaticaly activated the HTML-Editor for HTML-Files, which does not have the popup-box. I activated the Generic Text Editor, which actually shows me the popup-box with HTML-suggestions. I would be happy if someone has a hint why the HTML-Editor is broken in Eclipse 2022-12.

1

There are 1 best solutions below

1
muhammed ozbilici On

Go to settings

Window
⮑ Preferences
⮑ HTML Files
⮑ Editor
⮑ Content Assist

Then replace <= with;

abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._<=