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 247963 - Automatic quote and double quote insertion is a major pain in the ass
Summary: Automatic quote and double quote insertion is a major pain in the ass
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-15 21:43 UTC by zoszsoz
Modified: 2015-01-22 19:49 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 zoszsoz 2014-10-15 21:43:21 UTC
This is the most annoying thing about Netbeans and really hinders productivity.

Any time you want to edit CSS/HTML/Javascript/text etc and enter a single quote or double quote the default behaviour of the editor is to add a secondary matching quote. Often you'll be refactoring code and delete a quote, then enter it in another place, but then that inserts two quotes as well. You have to use the mouse, select the quote then manually delete it. This is just really unintuitive and annoying. It disrupts your thought flow and you end up fighting the IDE, trying to bypass its auto mechanisms.

Seriously please disable this automatic insertion of quotes and double quotes by default and let user enable it if they want it (I bet no-one will).

In Netbeans 8, disabling the option to insert braces {} automatically does not stop this behaviour for the quote insertion. The braces insertion actually works properly so leave that. That means you'll need to add separate behaviour options for quote/double quote auto insertion or just remove this automatic behaviour. Seriously, the default behaviour is not intuitive enough and turns out to be counter productive 90% of the time.

Please fix this bug as high priority as Netbeans is extremely annoying to use, and I am considering another IDE until this is fixed.
Comment 1 Milutin Kristofic 2014-10-22 10:27:12 UTC
I can fix per case automatic quote, if you send me your case and where it was unnecessary to add second quote.

I don't think option for quote is good idea, there are many automatic insertions and it would be too much option for user if for each there is checkbox for disabling.
Comment 2 zoszsoz 2014-10-27 22:18:04 UTC
Per case? I find it extremely frustrating in all cases.

The options available (inside Editor - Code Completion tab) don't seem to apply to stopping automatic insertion of single or double quotes. There are two options 'Insert Single Proposals Automatically' and 'Insert Closing Brackets Automatically'. We need a third option for 'Insert single and double quotes automatically'. This should be able to be applied to All Languagues. Adding an extra option is not too many options for the user. 

Mainly I just want a text editor that doesn't interfere with what I'm doing. I'll put in quotes when it suits me, not when the IDE thinks it should add a matching one.
Comment 3 aner 2015-01-22 19:42:41 UTC
I agree with it being counter-productive.  My specific use case is:

1. Create new html file
2. Try to enter the following line by typing each character

<div class="abc">

3. What you actually get:

<div class=""abc">

If I wanted it to work correctly I would have to type:

<div class=abc">

But why do I need to remember to do this just for netbeans?  I use other editors so I can't just learn to do it this way all the time.

Please note that I am not a touch typist so I am not looking at the screen while doing this.
Comment 4 aner 2015-01-22 19:49:08 UTC
To make things worse, If I try to fix it by clicking between the first 2 double-quotes and hitting the backspace key, it proceeds to remove both double quotes. Leaving me with:

<div class=abc">

I have to either put the cursor after the *second* double-quote and hit backspace or highlight/select the first double-quote with the mouse and *then* hit backspace.