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.

Bug 268563 - code templates insert a random template when pressing enter
Summary: code templates insert a random template when pressing enter
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-17 15:50 UTC by allanNB
Modified: 2016-10-18 11:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description allanNB 2016-10-17 15:50:45 UTC
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)
Comment 1 Tomas Mysik 2016-10-18 11:43:55 UTC
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)