Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a macro in Netbeans

This is a silly question but spent the last 20 minutes or so browsing through google results and the menus of Netbeans. Under edit there is a start and stop macro recording but after saving the macro I can't seem to find how to run it.

Didn't assign a keyboard short cut to it assuming I can select to run a named macro from the menu somewhere but other than start/stop recording I can't find anything that'll list a macro so I can run it.

like image 398
HMR Avatar asked Jan 14 '14 02:01

HMR


3 Answers

I have been googeling for a while too, and I could not find much. You can access to the key map and configure the shortcut for your macros. (Tools->Options->Key map). The macros can be accessed in the editor (Tools->Options->Editor)

There is another thread where I found it: Activating text editing macros on Netbeans

like image 65
Antonio Avatar answered Nov 12 '22 23:11

Antonio


you need to record macro first

go to - edit
hit on - start macro recording
< write code which you want to add in macro >
after writing code - stop recording macros

then a popup box will appear, you have to set name and a shortcut key for that macro and that's it.
you can use that macro typing the shortcut key.
more info

like image 43
mohit Avatar answered Nov 12 '22 22:11

mohit


Record another macro - this time assign it to a keystroke by clicking the Set Shortcut button in the dialog box. You will also see your previous macros when you do - and you can assign a shortcut to it as well.

like image 3
user3261859 Avatar answered Nov 12 '22 22:11

user3261859