Here is a handy vscode shortcut key to move the current line up or down. There is no need to select the line, your cursor should be there.
To Move the current line downAlt + Down
To move the line upAlt + Up
To undo your moves if required, press Ctrl + Z
This is tested in the Windows version of VScode.