The process for moving code within an Integrated Development Environment (IDE) can vary depending on the IDE you’re using. Generally, people often use CTRL+C and CTRL+V.
However, there’s a better way to do this, which is by using the shortcut:
CTRL+SHIFT+Up/Down