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 270577

Summary: Wrong curly bracket autocompletition
Product: javascript Reporter: ndwolf <ndwolf>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description ndwolf 2017-05-05 19:12:47 UTC
Having this line of code:

if (!$(element).attr('title')) { $(element).attr('title','Click for details');


pressing enter right next '{' to make the right part go to next row, I get this:

if (!$(element).attr('title')) { 
   $(element).attr('title'
},'Click for details'); 


Expected:

if (!$(element).attr('title')) { 
    $(element).attr('title','Click for details');
}

or at least do not insert the closing bracket