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 145433

Summary: Support language-specific macros or macro keybindings
Product: editor Reporter: matthies <matthies>
Component: MacrosAssignee: Svata Dedic <sdedic>
Status: REOPENED ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description matthies 2008-08-28 14:31:53 UTC
It would be useful to have language-specific macros or language-specific macro keybindings. For example I have bound to 
Alt+Shift+N a macro "insert null check for identifier under cursor". Of course this macro is language-specific, it 
would look different for Java than for C++ or Ruby etc. It would be useful to have the same keyboard shortcut bound to 
different macros depending on the current language (= editor file type). Under the hood this seems to be already 
possible, see issue 129680, but it can't be properly administrated using the Options UI. There are probably other areas 
that would need to be made aware of language-specific macro keybindings too, such as code that checks for conflicting 
keyboard shortcuts.
Comment 1 Vitezslav Stejskal 2008-08-28 21:01:28 UTC
Yes, it's possible with the current infrastructure. We just need better UI.
Comment 2 Martin Balin 2016-07-07 07:28:35 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 3 matthies 2016-07-18 20:11:11 UTC
Still relevant in current dev build.