Hey, I get you this is extremely useful. Thankfully it already exists. If you open your command pallette cmd/ctrl + p you can search for
swap line up
and
swap line down
I recommend adding hotkey shortcuts to something you feel comfortable with in
Settings > Hotkeys > Swap line up / down
Let me know if that solves it for you