====== 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! :-O) look for the line and rem the entire block (or delete it). Restart Netbeans and that's it!