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 - Wrong curly bracket autocompletition
Summary: Wrong curly bracket autocompletition
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-05 19:12 UTC by ndwolf
Modified: 2017-05-05 19:12 UTC (History)
0 users

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 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