User Tools

Site Tools




This is an old revision of the document!

Netbeans 8.0.2 code completion indentation problem

There is a bug in Netbeans 8 PHP (maybe also in other languages?) that indents every line inserted using code completion. Maybe this problem isn't present in a fresh installation and on the contrary is the result of auto-updating from 8.0.1 to 8.0.2. I'm not sure about it.

In other words, if you use code completion you end up with something like this:



Open the file ~/.netbeans/8.0.2/config/Editors/Preferences
(If you are using Windows it's you problem and not the worst! :-O)

look for the line

<entry javaType="java.lang.String" name="code-template-on-expand-action" xml:space="preserve">

and rem the entire block (or delete it).

Restart Netbeans and that's it!

ide/netbeans-8-code-completion-indentation-problem.1443536865.txt.gz · Last modified: 2015/09/29 15:27 by rik