ide:netbeans-8-code-completion-indentation-problem
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:
$db->connect(); $db->connect(); $db->connect(); $db->connect();
Solution
Open the file
~/.netbeans/8.0.2/config/Editors/Preferences
(If you are using Windows it's your problem and not the worst! )
look for the line
<entry javaType="java.lang.String" name="code-template-on-expand-action" xml:space="preserve"> <value><![CDATA[INDENT]]></value> </entry>
and rem the entire block (or delete it).
Restart Netbeans and that's it!
ide/netbeans-8-code-completion-indentation-problem.txt · Last modified: 2018/07/17 11:01 by rik