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 231877

Summary: Auto complete of quotes, double quotes, braces etc inconsistent across editors (css, javascript etc)
Product: javascript Reporter: qazzi76
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: czmiel, FrantaM, obrejla, terje7601, tp21
Priority: P2    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description qazzi76 2013-06-26 22:14:09 UTC
I am unable to disable the autocomplete for ",',[,{, and ( across all subeditors when editing php, or html/htm documents.

When the "Insert Closing Brackets Automatically" is unticked in "tools>options>Editor>Code completion>All Languages"

The following behavior is observed in php/html documents featuring <script> and <style> tags.

A "1" indicates that a closing quote/doublequote/bracket/etc is produced i.e "", or '', or [] which is not the intended result.

A "0" indicates no closing quote/doublequote etc is displayed.

Auto complete
----------------
			PHP	Javascript	CSS	HTML

single quotes '		0	1		1	0	

Double Quotes "		0	1		1	0

parenthesis (		0	1		0	0

Braces {		0	0		1	0

Square Brackets [	0	1		0	0


This one function makes it impossibly difficult to edit web documents in netbeans.

Auto complete needs to disable closing quotes/braces etc across all editors not just php and html.

The behaviour as it stands is very inconsistent and confusing.

Thanks in advance for any assistance that can be offered with this.
Comment 1 Ondrej Brejla 2013-06-27 07:04:33 UTC
From the description, only PHP and HTML behaves correctly, right? No extra characters are completed. So not sure why reassigned to PHP...reassigning to JS for further evaluation.
Comment 2 Vladimir Riha 2013-06-27 07:21:42 UTC
I tried JS, reproducible (but I think {} are not being autocompleted in my case at least). There is similar issue about it, issue 228183




Product Version: NetBeans IDE Dev (Build 201306262301)
Updates: Updates available
Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
Comment 3 Vladimir Riha 2013-06-27 07:26:36 UTC
I'll file separate issue against CSS
Comment 4 Vladimir Riha 2013-06-27 07:54:37 UTC
... reported as issue 231899 - Unable to turn off autocompletion of braces and quotes
Comment 5 Ondrej Brejla 2013-06-27 07:55:11 UTC
Just a note, auto completion of single and double quotes in PHP is managed by a
separate option "Options -> Editor -> Code Completion -> PHP -> Quotes
Completion -> Use Smart Quotes".

So "Insert Closing Brackets Automatically" option handles just [{(.
Comment 6 qazzi76 2013-06-28 19:52:09 UTC
My table is somewhat skewed...

Just to confirm:

- php and html editors work correctly

- { are not auto completed in the JS editor but [,(,",' are

- (,[ are not auto completed in CSS editor but ",',{, are

- there is no way to disable the autocomplete for the for the above in the css and javascript editors
Comment 7 Petr Pisl 2013-07-10 10:15:38 UTC
The auto completion is handled by every editor. Every editor handles different chars. So from this point of view should have every language editor options to disable / enable the auto completion chars.
Comment 8 Petr Pisl 2013-07-10 12:34:55 UTC
Marking as enhancement.
Comment 9 qazzi76 2013-07-12 09:09:22 UTC
Hi Petr,

Thanks for your assistance with this.