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 248432

Summary: Wrong selection replacement
Product: javascript Reporter: Petr Hrebejk <phrebejk>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Petr Hrebejk 2014-11-05 16:40:21 UTC
have a text like:

setFilterKind.bind($data, 'UNIFIED')

place selection on:

bind($data

press (

What you get is:


setFilterKind.(bind($data,) 'UNIFIED')

which is pretty confusing.

There are very similar problems with " it is often pretty complicated to make the IDE to place them in correct places.

I would prefer not to have the wrap selection feature at all than this. The gesture of selecting something and replacing it with a character typed is pretty standard and should not be overridden by the wrap-selection functionality.
Comment 1 Roman Svitanic 2015-06-09 14:44:48 UTC
If you don't like the mentioned feature, then you can easily turn it off:
Go to CC options: Options > Editor > Code Completion

and then you can customize both cases:

1. Brackets/parentheses
Select "All Languages" and uncheck there "Insert Closing Brackets Automatically"

2. Quotes
Select "JavaScript" and uncheck "Use Smart Quotes"