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 256011 - Auto escape apostrofe when replacing double quotes (and Vice Versa)
Summary: Auto escape apostrofe when replacing double quotes (and Vice Versa)
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-19 08:05 UTC by fiala.premysl
Modified: 2015-10-19 08:05 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fiala.premysl 2015-10-19 08:05:47 UTC
Scenario:
have some string with apostrophe in double quotes:
"someting can't something"

Select one of the doublequotes, press key(s) for apostrophe to replace both double quotes:
'something can't something'
which is syntax broken.

Escaped output would be much better:
const A = 'something can\'t something';