简体   繁体   中英

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":

在此处输入图片说明

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

在此处输入图片说明

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM