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.
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.
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.
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)
I'll file separate issue against CSS
... reported as issue 231899 - Unable to turn off autocompletion of braces and quotes
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 [{(.
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
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.
Marking as enhancement.
Hi Petr, Thanks for your assistance with this.