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 189711 - Disabling Autocompletion Quotes and Tags
Summary: Disabling Autocompletion Quotes and Tags
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 187297 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-20 10:34 UTC by lukearmstrong
Modified: 2010-12-09 14:50 UTC (History)
2 users (show)

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 lukearmstrong 2010-08-20 10:34:40 UTC
Tools > Options > Editor > Code Completion
Lanaguage: HTML

Disabling all of those, frankly annoying, options causes the following typing:
<div id="foo"

To generate this code in the editor:
<div id="foo""

It's driving me mad. Is there any way of manually editing a configuration file to just let the editor leave the code up to me typing it in. The rest of the IDE is useful (ctrl+click to get to function declarations, etc) but when it comes to writing HTML I often switch to Notepad++ as I don't have to delete errors automatically inserted by the editor.

I would also like to disable the popup completion window when opening a HTML tag. At the moment you can only disable it for All Languages, which also disables it for PHP, which is a shame as it is annoying in HTML but useful in PHP. The reason I dislike it for HTML editing is that when it pops up, it prevents you from pressing [End], which I often do when I am adding tags around existing lines of code.

:(
Comment 1 csflesner 2010-12-07 15:10:31 UTC
Please fix this!!  It's driving me absolutely *nuts*.
Comment 2 Marek Fukala 2010-12-08 08:39:58 UTC
Oops, I'm sorry for that (one more quotation added when the options disabled). I am going to fix right now.

BTW if the options are enabled it works fine and the editor skips the autocompleted characters if you type them anyway. So I miss the information what in particular annoys you so much on the autocompletions. Can you please elaborate a bit? I'm more then willing to fix that...
Comment 3 Marek Fukala 2010-12-08 08:58:27 UTC
just to make it clear...

actually the superfluous quotation mark is added even with the options enabled, but you do not typically run into such situation since the quotes are added correctly for you.

<div id| + "=" => <div id="|"

+"bleble" => <div id="bleble|"

+""" => <div id="bleble"|

but if you then delete the closing quotation and type it again you'll end up with two of them.
Comment 4 Marek Fukala 2010-12-08 10:02:47 UTC
the '<div id="foo""' problem fixed in web-main#be034bc9da10

I'm also going to add the option for disabling the completion autopopup
Comment 5 Marek Fukala 2010-12-08 10:30:39 UTC
"Auto Popup Completion Window" option added to the Html completion options panel.

web-main#e38c4a5cc4b0

IMHO the generic editor options should be language/language path specific so no such proprietary stuff is needed.

Let me know if the changes made you a bit cheerful or not. In any case I'd like to hear what exactly annoys you on the default behavior so you need to disable the autocompletions. Thanks in advance.
Comment 6 csflesner 2010-12-08 16:39:55 UTC
What annoys me about the default behavior is that, invariably, it thinks it's smarter than I am.

For example, if I'm writing .jsp, <c:out value="${theValue}"/>, it does not correctly guess that that the second quote is matched to the first quote, so if I type the second quote, I end up with two quotes.

And, really, no matter how good the default behavior is, it will always miss something.
Comment 7 csflesner 2010-12-08 16:47:36 UTC
Also, if I type the opening quote, then delete it, the automatically inserted closing quote is not deleted.  So if I, for example, type an opening quote, delete the opening quote using backspace, then re-type the opening quote, I end up with 2 automatically generated closing quotes.  I do this quite frequently.  ANNOYING!
Comment 8 Marek Fukala 2010-12-08 19:27:35 UTC
both issues you've just described sounds like bugs to me. I'll look at them tomorrow and possibly file new issues to appropriate modules. I'll add you to cc.

I consider this one as fixed anyway.

Thanks for the feedback.
Comment 9 Quality Engineering 2010-12-09 06:17:42 UTC
Integrated into 'main-golden', will be available in build *201012090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/be034bc9da10
User: Marek Fukala <mfukala@netbeans.org>
Log: #189711 -  Disabling Autocompletion Quotes and Tags
Comment 10 Marek Fukala 2010-12-09 14:50:08 UTC
*** Bug 187297 has been marked as a duplicate of this bug. ***