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 - Wrong selection replacement
Summary: Wrong selection replacement
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 16:40 UTC by Petr Hrebejk
Modified: 2015-06-09 14:44 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 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"