eclipse-wildwebdeveloper / wildwebdeveloper

Simple and productive Web Development Tools in the Eclipse IDE
https://projects.eclipse.org/projects/tools.wildwebdeveloper
Eclipse Public License 2.0
189 stars 70 forks source link

Can't figure out JavaScript content assist. #1701

Closed alldaygooning closed 3 days ago

alldaygooning commented 4 days ago

I am new to Wild Web Developer and not even sure if this questions should be addressed here.

I am having 2 issues right now:

  1. I cannot use code templates for JavaScript (that are located in Preferences>Web>Client-side JavaScript>Templates) like I do when writing Java code (code templates work perfectly fine along with content assist on Java). Whenever I try to use a template (by writing its name and hitting ctrl+space) it does not appear in content assist popup.
  2. JavaScript content assist is just awful. It comes up with all the wrong suggestions, but most of it boils down to them being useless. I want to be able to customize (like it is possible to do with Java editor) which content types are shown to me in the content assist popup, specifically I want function names and keywords.

Please help me solve my issues

alldaygooning commented 4 days ago

Like with HTML or Java I get to pick which types of proposals appear and in what order: image image But with JavaScript, well, its preference page is just empty for me: image

akurtakov commented 3 days ago

Settings you refer to are not coming from wildwebdeveloper but from webtools project (https://projects.eclipse.org/projects/webtools) which has its JS support kind of discontinued. Please make sure that you install wildwebdeveloper (https://github.com/eclipse-wildwebdeveloper/wildwebdeveloper?tab=readme-ov-file#-get-it-now) and make sure that you open your js file with "Generic Editor"/"Generic Code Editor" so you use this project editor. Note: It doesn't provide a way to define and edit templates. I'm closing this issue now as it looks misfiled. If/when you use wildwebdeveloper and you get wrong completion or any other suggestion on how/what to improve please file them as new issues.