Menu

Macros don't work as expected

P George
2008-08-26
2012-11-13
  • P George

    P George - 2008-08-26

    I use macros quite extensively during development.
    e.g. to convert DB table columns to get/set methods:
    e.g. I have following lines of columns I generated from MySQL
    client_id
    client_first_name
    client_last_name

    Here is what I want to do with Notepad++ (this works in Crimson Editor)
    Key strokes are [], comments after --
    Position Curosor on the first line (with client_id)
    [HOME]
    [SHIFT-END] -- select till end
    [CTRL-C]
    [HOME]function get[END] () {[ENTER]
    [TAB]return $this->[CTRL-V];[ENTER]
    }[CURSOR DOWN][HOME] -- basically you are at the beginning of line2
    You should be able to pay the macro and create get function for the second line which at the end will take to the beginning of next line.
    But Notepad++, goes back to the first line and does this all over again.

     
    • Jose Xavier

      Jose Xavier - 2008-08-26

      Looks like if the AutoComplete is turned off, it works. Otherwise, it copies junk or types in some weird text.
      Can we have autocomplete turned off automatically when Macros are recorded or played back ?