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.
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.
Yes, it's possible with the current infrastructure. We just need better UI.
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
Still relevant in current dev build.