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 126364

Summary: Shortcuts in Insert code and Surround with
Product: editor Reporter: erikhl <erikhl>
Component: Hints & AnnotationsAssignee: Dusan Balek <dbalek>
Status: REOPENED ---    
Severity: blocker CC: markiewb
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 211167    

Description erikhl 2008-01-31 08:44:35 UTC
The entries in the Surround with and Insert code lists should have a shortcut starting with 1-9 and then moving on to
A-Z. Pressing the key for the shortcut should immediately activate that action. As the lists in these functions will
grow, such a shortcut would be very appreciated. Check IntelliJ IDEA for how they implemented it.
Comment 1 Vitezslav Stejskal 2008-02-06 13:37:37 UTC
Thanks
Comment 2 Vitezslav Stejskal 2008-02-06 13:38:31 UTC
Related to issue #126363.
Comment 3 daina 2009-11-14 15:46:18 UTC
I would suggest that code templates entries in "Surround with..." for shortcuts leave same own code template abbreviation keys, so would be handily, with same key sequence insert code templates by Tab (or other expand key) and wrap selected text by Alt-Enter, after all abbreviations can be short, why not use the same in both cases. I use NB for client side programing, and miss such functionality for quick coding.

"Surround with..." popup could has auto filtering as you type, like standard completion window.

Thanking You in Anticipation
Comment 4 markiewb 2013-03-03 23:13:08 UTC
*** Bug 212654 has been marked as a duplicate of this bug. ***
Comment 5 markiewb 2013-03-03 23:15:53 UTC
212654 was a duplicate of this issue and was linked as "blocks" to 211167. So i change this issue to "blocks" 211167 too.
Comment 6 Martin Balin 2016-07-07 07:25:51 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 7 markiewb 2016-07-10 18:00:36 UTC
Still valid in 8.2 dev 
Product Version: NetBeans IDE Dev (Build 201607100002)