Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4488
    jeremy
    Member

    hi, is there a shortcut key to move a line (or selected lines) up or down ?

    In eclipse, I could do this by clicking alt-up or down arrow to move the line up and down, this is very handy than cut then paste.

    Any idea on this one ? thanks.

    #4491
    Yutaka Emura
    Keymaster

    You can use JavaScript macros:

    Move Up:


    editor.ExecuteCommandByID(4193);
    editor.ExecuteCommandByID(4269);
    document.selection.Paste(eeCopyUnicode);
    editor.ExecuteCommandByID(4269);

    Move Down:


    editor.ExecuteCommandByID(4193);
    editor.ExecuteCommandByID(4268);
    document.selection.Paste(eeCopyUnicode);
    editor.ExecuteCommandByID(4269);

    and you can assign these macros to any key shortcuts.

    #4865
    Dennica
    Participant

    How it is possible to shift the selected box to the left or to the right?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.