To duplicate a line or fragment

Place the caret at the line to be duplicated, or
select the desired fragment of text.

Press ⌃D.

To remove a line

Press ⌃Y to delete the line at caret.

To move a line

Place the caret at the line to be moved.

Do one of the following:

On the main menu, choose Code | Move Line Up or Code | Move Line Down.

Press ⌥⇧↑ or ⌥⇧↓.

AppCode moves the selected line one line up or down, performing the syntax check. For example:

After moving line at caret:

To move a statement up or down

Select a statement to be moved, or just place the caret at the first or last lines of
a multi-line statement. Note that if moving a statement is not allowed in the current context, the commands
will be disabled.