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.
Product Version = NetBeans IDE 7.4 (Build 201310111528) Operating System = Windows 8 version 6.2 running on x86 Java; VM; Vendor = 1.7.0_45 Runtime = Java HotSpot(TM) Client VM 24.45-b08 There is a problem with how Auto-close quotes works in CSS. If type in a double-quote, I get a close quote with it. However, if I delete on of the quotes, both of them get deleted. Also, when the cursor is right before some text and I try typing a quote, I still get a double quote - thats not how it works in the PHP files, but this problem only happens on CSS Files and really irritates me at times.
Created attachment 143502 [details] IDE log
I don't know how reporting a bug works, so if I did something wrong, I'm sorry. I'd repost the problem description here There is a problem with how Auto-close quotes works in CSS. If type in a double-quote, I get a close quote with it. However, if I delete on of the quotes, both of them get deleted. Also, when the cursor is right before some text and I try typing a quote, I still get a double quote - thats not how it works in the PHP files, but this problem only happens on CSS Files and really irritates me at times.
Reproducible. I'd think the deleting both quotes is intentional but could be wrong (e.g. JavaScript behaves the same). (In reply to jrm1987 from comment #2) >I still get a double quote Do you mean you get 2 quotes, closing and opening one, right? E.g. when having .pes{ background-image: url(test.png); } then typing quote before test.png results in .pes{ background-image: url(""test.png); }
You are right, the current behaviour is quite irritating. I believe it could behave like this: w/o text before caret: url(|) + " => url("|") press backspace => url(|) or press delete => url("|) w/ test before caret: url(|hello.png) + " => url("|hello.png)
fixed the cases from comment#4 changeset: 276262:b367b585db39 summary: #239848 - Auto-close Quote Issue in CSS Files
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b367b585db39 User: Marek Fukala <mfukala@netbeans.org> Log: #239848 - Auto-close Quote Issue in CSS Files
The mentioned cases are working as described, I tried to play with some other cases and seems to be OK. Product Version: NetBeans IDE Dev (Build 201407310738) Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Thanks a lot!