Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans autocomplete stopped working?

I'm using Netbeans 6.9.1, everything was just fine however suddenly, it has stopped detecting any changes made to the code, e.g new variables, functions, etc. If I try to refactor/rename a variable, e.g by pressing CTRL + R, it says 'Refactoring not available in this context'.

Its in a PHP project if that matters.

Any ideas?

like image 201
Ali Avatar asked May 08 '11 15:05

Ali


People also ask

How do I enable autofill in NetBeans?

For windows : Go to Tools > Options > Editor > Code Completion. Select Language Java from dropdown. Auto pop-up on typing any Java identifier part.

How do I turn off suggestions in NetBeans?

If you go into NetBeans > Tools > Options > Editor > Code Completion, you can check or uncheck "Auto Popup Completion Window" for whatever Languages you want.

How can I see compiled code in NetBeans?

On the main NetBeans menu, choose Build → Build Main Project. The output window shows a successful compilation. If the compilation isn't successful, make changes to the code in the editor window, and try compiling again.

Where is Javadoc in NetBeans?

Displaying JavadocFrom the menu bar, select Window > IDE Tools > Javadoc Documentation to open the Javadoc window, in which the documentation is refreshed automatically for the location of your cursor.


2 Answers

Since NetBeans 7.2 the cachedir has been moved to the following locations:

C:\Users\<username>\AppData\Local\NetBeans\Cache\7.2\ on Windows /Users/<username>/Library/Caches/NetBeans/7.2/ on Mac OS X /home/<username>/.cache/netbeans/7.2 on Unix-like systems

Source: http://wiki.netbeans.org/FaqWhatIsUserdir

like image 144
Martijn Gastkemper Avatar answered Sep 21 '22 18:09

Martijn Gastkemper


tools>plugins>installed

then find the Java SE,
right click and Activate enter image description here

this works for me on netbeans 12.2

like image 22
Ravinath Avatar answered Sep 22 '22 18:09

Ravinath