In this tutorial I am going to explain how to add shortcuts on netbeans. Its really easy and awesome. Lets see..
In PHP generating documentation is really easy just type /** and press enter you will get
/** * */
In this tutorial I am going to explain how to add above PHP documentation code on netbeans shortcuts.
1. Start the recording of new macro through pressing Start Macro Recording button.
2. Press type in editor /**, pressENTER key and then stop the recording through Stop Macro Recording button.
3. In the New Macro Dialog place name of the macro. I have called it PHP Doc.
4. Through the Set Shortcut … button assign a short cut. In my case I have used ALT+D combination. You don’t have to write it in the Shortcut text field, it’s enough to press the combination of keys. Close the dialog and you are done.
Now if you have cursor just before a class or method or function and press ALT+D shortcut the PHP Doc is generated. Like in the picture below.
If you want to change the shortcut, edit or delete a macro, you have to go to the Tools->Options dialog, Editorcategory and choose Macros tab.
The macros are more powerful, but this is a small example how can use it. Hope that it will be helpful.