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 228535 - netbeans add single quote instead of double quote
Summary: netbeans add single quote instead of double quote
Status: RESOLVED INVALID
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-13 08:50 UTC by vee
Modified: 2013-08-05 11:20 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 vee 2013-04-13 08:50:11 UTC
when i type <div class= in netbeans 7.2 autocomplete with " double quote. that's correct.
but in netbeans 7.3 it is autocomplete with ' single quote. that is really annoying.
it should autocomplete with " double quote not single quote.

why you always broke good thing in previous version down?
Comment 1 Vladimir Riha 2013-04-15 15:08:03 UTC
I'm sorry, it works for me, type:

<div class

completion window is open, press enter => result is

<div class=""

It works for me in both JSP & HTML.


In which file does it happen? 
Can you reproduce it in different project/file? 
Can you try it with fresh userdir (you can either delete existing or temporary use different folder, please check [1] and [2]) ?


If nothing above helps, please give us more precise steps (screencast, sample file...) to reproduce it and simply reopen this issue, thanks. 

Thank you for reporting.


[1] http://wiki.netbeans.org/FaqAlternateUserdir
[2] http://wiki.netbeans.org/FaqNetbeansConf

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-40-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 vee 2013-04-15 16:23:34 UTC
(In reply to comment #1)
> I'm sorry, it works for me, type:
> 
> <div class
> 
> completion window is open, press enter => result is
> 
> <div class=""
> 
> It works for me in both JSP & HTML.
> 
> 
> In which file does it happen? 
> Can you reproduce it in different project/file? 
> Can you try it with fresh userdir (you can either delete existing or temporary
> use different folder, please check [1] and [2]) ?
> 
> 
> If nothing above helps, please give us more precise steps (screencast, sample
> file...) to reproduce it and simply reopen this issue, thanks. 
> 
> Thank you for reporting.
> 
> 
> [1] http://wiki.netbeans.org/FaqAlternateUserdir
> [2] http://wiki.netbeans.org/FaqNetbeansConf
> 
> Product Version: NetBeans IDE 7.3 (Build 201302132200)
> Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
> Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
> System: Linux version 3.2.0-40-generic-pae running on i386; UTF-8; en_US (nb)

just type <div class=

and the autocomplete will show '' (single quote)

it is now automatic change to double quote. i don't know why.. just backspace and type double quote manually 3-4 times then it auto change to double quote.
Comment 3 failpunk 2013-06-22 23:27:32 UTC
This is also happening for me using 7.3
Comment 4 flangefrog 2013-08-05 11:11:45 UTC
This just started happening to me today, here is my info:

Product Version: NetBeans IDE 7.3 (Build 201306052037)
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b17
System: Windows 8 version 6.2 running on x86; Cp1252; en_NZ (nb)
User directory: C:\Users\Michael\AppData\Roaming\NetBeans\7.3
Cache directory: C:\Users\Michael\AppData\Local\NetBeans\Cache\7.3
Comment 5 flangefrog 2013-08-05 11:20:42 UTC
I was a bit premature there, I tried what @vee said but couldn't get it to work. After playing a bit more I found the answer.

Type something like <div class= now your cursor should be in between two quote or double quote characters. You can now type the other type of quote character and it will change your preference.