In the name of Allah, Most Gracious, Most Merciful

Friday, June 25, 2010

Macro Recording in NetBeans.

The whole idea of macro recording is to record some actions (e.x. selecting line or writing a specific code) and then assign a shortcut for it so that when that shortcut is called it do whatever was recorded.

I can find it already useful if I write a certain code so many times .. instead I can record it once and then assign a shortcut to it (Ctrl+L or whatever) so that I just do it instead writing this code over and over again ..

Other use I can see is to define your one tricks .. mmm .. What I mean is that there's some tricks that are really small but pretty neat .. e.x. : clicking ctrl while moving with the arrows will make you skip words as a whole not just letters..

So for example you can define Ctrl+L as a command to select the whole line .. just hit record and then select to the end of the line then hit end recording .. name it .. assign shortcut to it .. and use it later on to speed up your workflow :) ..

That's all for it .. I hope that you find it a useful tool :) :) ..

4 comments:

  1. okay.. i know that before reading this, thats why i googled and reached here.. lol

    ReplyDelete
  2. But how can i define a temporary macro (like in emacs)
    for example - i want to add the word private before each field so i can record a macro to do so, use it with some default keyword and this is it - i dont want to save it and give it a name or anything.. can it be done??

    ReplyDelete
    Replies
    1. never mind - already find out that this is not possible:
      http://forums.netbeans.org/topic4752.html

      Delete