Community
Participate
Working Groups
I created a new Static Web Project, and added a HTML and CSS file. I linked the CSS files the normal way in the HTML document (<link rel="stylesheet" type="text/css" href="styles.css">). When trying to add CSS classes to HTML elements, the list of classes from the CSS file does not show up (<div class="...). Hitting ctrl+space scrolls through "HTML Template Proposals", "HTML Tag Proposals" and "Default Proposals". Again, no proposals from the linked CSS file. I made sure both the html file and the css file were in the same folder (the default "WebContent" folder). I am using Eclipse Neon and tried both the "Eclipse for PHP" and "Eclipse for JavaScript and Web Development" releases. I made sure all the proposal caegories are checked under "Window --> Preferences --> Web --> HTML Files --> Editor --> Content Assist", as well as under "...CSS Files --> Editor --> Content Assist". This seems to be a rather serious bug, given how basic the Content Assist feature is. Thank you for your help.
Magnus, thanks for reporting this. Could you please attach a simple project that we can use to test and fix this bug? A couple of additional questions, if you have time for them :) - Is this not working also in Eclipse JEE Neon? - Did this use to work in Eclipse JEE Mars? (moving to sourceediting)
Changing to severity enhancement. This has never been implemented; it may be a feature in adopter products or plug-ins built on top of WTP.