how to download file inside vscode terminal from remote server? - visual-studio-code

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)

Use curl. It's a "command line tool and library for transferring data with URLs"
This tutorial might help

Related

How do you fix "google-chrome" is not recognized in VS Code?

I'm trying to run HTML for the first time in VS code, but when I run it, it says
"google-chrome" is not recognized as an internal or external
command,operable program or batch file.
A screenshot of my problem has been attached below.
How can this be fixed?
You have to save that file with the name that browser can recognize, it should look something like 'filename.html'. Then you can open it with a web server application like xampp, or just open it on your file explorer.
The issue is that google-chrome is not a recognized command in Windows (it is in Linux distros).
The easiest way to make it work is saving the ".html" file with a proper name (something.html) and then use the command cd "C:\Users\LGU BATO\Desktop\html\" && something.html.
An explanation of this command is:
First, it will cd into the directory, as listed on the screenshot. This changes the directory of the command prompt window.
It will then open the file with your default browser.

Can't save the file as an ipynb file from jupyterlab

I need to download an ipynb file from jupyter-lab on my Mac. For some reason there is no download option in file part. Is there any other way to save my Jupyter file on my desktop to be able to load the file to my Github?
thank you so much,
To download a file from JupyterLab use the file browser:
open context menu on the file of choice, and
select "Download":
This is also documented in the official documentation Working with Files chapter, which even includes this video deomnstartion: https://www.youtube.com/watch?v=Wl7Ozl6rMcc

How do I open files on server in a text editor from the command line?

I'm sorry if this seems like beyond a beginner question, but I mean this seriously. I'm moving around my ubuntu server via the command line, trying to open a file called 'authorized_keys'. I tried: root#ubuntu: open -a atom authorized_keys only to learn this open -a command does not work in this ubuntu environment. I can download the files to my machine via sftp and open them, but is that the only way? Besides using nano/vim?
The tutorial I'm watching on deployment shows this guy using MobaXTerm, a windows product that allows both sftp and the command line to be present. So he is just clicking on the files on his server and they are opening. However, I am on mac, and only using the command line. Thanks for any help. I am also not sure If I tagged this question properly, feel free to move it.
Just read all of this and realized that I it would make sense if downloading and reuploading the file via sftp would be the only way.

How to download a remote file using ftp-simple in VSCode

How do I download a file from a remote server using ftp-simple? I'm using VSCode. I'm open to recommendations on sftp extensions that work with VSCode.
Thanks.
First you have to connect FTP server using this then open your looking file and save it to your computer. or after connecting to FTP server, you can refer to your file's location using this and find your target file.
First you have to connect FTP server using this then open your looking file and save it to your computer. or after connecting to FTP server, you can refer to your file's location using this and find your target file.

How to edit java files in remote machine using eclipse

my project source code is in unix, we are using CM synergy source control for code checkin/chech out files. we update the files using vi editor. Pls help in how to set up eclipse in windows system and then connect to the code server and edit the files.
You could install the Remote System Explorer framework, that allows opening files from a remote server, and also gives shell access to the remote server. For anything more specific, I'm not sure whether a free solution exists.
I experienced some problems accessing remote file systems with the Remote System Explorer Plugin, the FTP session was closed unexpectedly. I recommend for linking in your local projects remote sites Aptana Eclipse Plugin.