This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
not the same as #268395 how to reproduce: select a php file (others have the same issue too, like js) enter: <?php class xxxxx { public static $someArr = array( 1 => 1, <- after space hit Enter. Netbeans will insert a random code template (normally first on the autocomplete list - when I delete that code template in options, then Netbeans just inserts the next one)
I cannot reproduce your issue, I hit <SPACE> and <ENTER> but no code is inserted for me. BTW did you wrote that it happens in other file types (like JS) as well? If so, then it would be a more general problem and not PHP one, I suppose. Simply reopen this issue, thanks. Product Version: NetBeans IDE Dev (Build 20161018-2a7473dff97c) Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13 System: Linux version 4.4.0-43-generic running on amd64; UTF-8; cs_CZ (nb)