mpemburn
mpemburn

Reputation: 2884

NetBeans: Javascript Code Completion doesn't work as expected

I've just started using NetBeans (PHP version 7.2 for Mac) and love it so far. One thing that I haven't been able to figure out is how to get Code Completion to work for Javascript files in the same fashion as it does for PHP, CSS and HTML files. For example, if I type "fun" in a PHP file, it'll pop up a box that allows me to choose "function":

enter image description here

If I do the same thing in a Javascript file, I get nada:

enter image description here

I've looked all over the place and I have not found a way to add this functionality. Your help would be greatly appreciated.

Upvotes: 0

Views: 745

Answers (1)

Álvaro González
Álvaro González

Reputation: 146650

For this example, try the Source-> Complete Code command (Ctrl+Space by default).

In any case, the JavaScript editor is currently being rewritten from scratch so better code intelligence is to be expected in the near future.

Edit: I almost forget the most obvious answer... Make sure your file belongs to a loaded project. Code intelligence doesn't work properly outside projects.

Upvotes: 1

Related Questions