To be able to go through the files, change the code, and run commads in the terminal in the remote server, you can use this extension on vscode.
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh