skip to Main Content

I want something like

code --download_file [path_to_file]

to download file from remote server to my local computer (instead of manual select file in file explorer because sometimes the file is not in currently open project)

2

Answers


  1. Use curl. It’s a "command line tool and library for transferring data with URLs"

    This tutorial might help

    Login or Signup to reply.
  2. Try python3 -m http.server -d $(THE_DIRECTORY_PATH_TO_FILE), and vscode will simply forward port 8000 locally. Visual Studio Code for the Web also works well. (i’m using a vscode-web for learning and meet the same question, finally solving by initing the simple file-sharing server).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search