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 257284

Summary: Enter new tag and pressing END key should get one to the end of line
Product: editor Reporter: xracoonx
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description xracoonx 2015-12-24 11:34:00 UTC
Whenever I enter a new tag, e.g. "<a>", a hint is shown with the respective closing tag, e.g. "</a>". Now pressing the END key will not get me directly to the end of the line but rather to the end of the list of hints. Since under these circumstances there will always be only one hint this is unnecessary and makes the input cumbersome. Rather the END key should get one directly to the end of the line. (Maybe this is a behavior that is even desirable whenever there is only one element in the list of hints.)

Here is a concrete example:

Lets say I have a paragraph that I want to surround with a <p> tag. For example:

Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua.

So I go to the start of of the line and enter "<p>" then I press END to enter "</a>" at the end of the line. However in Netbeans (8.1) this will get me nowhere. Rather I have to first press ESC then END and then enter "</p>". This seems unnecessary cumbersome since pressing END is unambiguous given that there will be only one element in the list of hints anyway. Notice also that this does not break the behavior for those people accustomed to pressing ESC-END.