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.
The default macro behaviour once recording has finished is a bit inconvenient and could be simplified to great advantage. As a developer, I find macros an extremely helpful tool in assisting the development process. The NetBeans IDE currently provides handy shortcut keys to start and end the recording process (ctrl-j s, ctrl-j e). Which is great, but on the basis that 99% of macros are usually "throw-away" macros (ie: they very rarely need saving for future use), having to subsequently: 1. click the "Add" button to bind a key, 2. type the keystroke, 3. click "OK" to accept the keystroke, 4. click "OK" to save the macro, 5. click "OK" one more time if you want to over-write the default <> macro before you can start actually using the desired macro makes the macro process too cumbersome for "on-the-fly" macros which us developers love so much... Perhaps it would be best to have Netbeans simply bind any newly recorded macro to a default key (customisable). That way the macro could be used immediately upon completing the ctrl-j e. If the developer then wants to actually save the current macro as a permanent macro for future use, then a new option to "Save Current Macro" could be added. This option would invoke the current functionality for saving macros, thus preserving the existing functionality.
I couldn't agree more. For the past few years I always keep another editor open explicitly for the purpose of doing ad hoc macros. I would say that the vast majority (95%) of my macros are throw away and I don't want to have to bind them to a key or name them. Vi and Emacs have this as do most other code editors. This would be a great addition. NetBeans Rocks boys. Keep up the good work. Michael
*** Issue 20018 has been marked as a duplicate of this issue. ***
*** Issue 41740 has been marked as a duplicate of this issue. ***
*** This issue has been marked as a duplicate of 69424 ***