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'm not sure what this feature is called, but in a Java file if I type a quote preceding a quote, the editor actually overrides the following quote. For example, take the follwing line of code: String("X"); If I insert my cursor after the X and type a quote, it will just override the existing quote. This is desired behavior. However, in JSP pages, it doesn't work this way and it's quite frustrating, because you always end up with double-quotes (because you expect the same behavior as in the Java file) or you have to move your hand to the arrow keys to advance the cursor one space over the quote to complete typing the line. For example: <jsp:forward page="X"/> Inserting your cursor before the X and typing a quote will yield the following: <jsp:forward page="X""/>
reassigning to web
This is how it currently works for all non-java editors (html,jsp,xml,...). I think we could improve it in the proposed way. And what about other improvements like the following? <tagname attr=| + " => <tagname attr="|" <tagname attr| + = => <tagname attr="|" IMHO they make sense for XML and JSP tags and JSP directives where the quotes are mandatory.
I'm changing this to a defect because the inconsistency is so annoying. I don't want to mentally have to track of the type of file I'm working in when coding. I've also changed the component to editor. /Brian
Not sure why this was reassigned to the editor module - this feature is currently implemented directly in language plugins (ie. in Java editor), not in the language agnostic editor module. Anyway, sounds more like and enhancement to me...
*** This issue has been marked as a duplicate of 149271 ***