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.
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. :(
Please fix this!! It's driving me absolutely *nuts*.
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...
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.
the '<div id="foo""' problem fixed in web-main#be034bc9da10 I'm also going to add the option for disabling the completion autopopup
"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.
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.
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!
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.
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
*** Bug 187297 has been marked as a duplicate of this bug. ***