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 - Support language-specific macros or macro keybindings
Summary: Support language-specific macros or macro keybindings
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Macros (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-28 14:31 UTC by matthies
Modified: 2016-07-18 20:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.