Learn Linux/Unix jobs; "<cmd> &" to start something in the background, "jobs" to list running jobs, Ctrl-Z to pause the running thing into the background, "bg <id>" to get a backgrounded job running in the background, "fg <id>" to bring a background job to the foreground.
Then learn a multiplexor like tmux or screen which can split windows and have virtual terminals inside one SSH session.
Then learn an editor like Vim or Emacs which has buffers and windowing inside that.
Then if on a laptop which roams, stack mosh on top to keep the SSH session open without reconnecting.
Then trash all that and do X-Forwarding over SSH to have GUI programs.
Then trash that and use VS Code or Emacs locally with remote editing plugins/config (e.g. https://code.visualstudio.com/docs/remote/ssh )
Then ditch that and have local editing with CI/CD to build and deploy to a remote server that you never touch.