Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Setting up a custom command in WinSCP to achieve this.

Preparation
VS Code is able to access the remote host via SSH. WinSCP is able to access the remote host via SFTP.

Setup a Custom Command in WinSCP
In WinSCP's 'Preference' dialogue, navigate to 'Command' panel showing command list and operations. Click on the 'Add...' button to call out the 'Add custom command' dialogue.
Fill in 'Description':
VS Code

Fill in 'Custom command':
"C:\Program Files\Microsoft VS Code\Code.exe" --remote ssh-remote+!U@!@:!# !//!

Check 'Local command'. Check 'Use remote files'. Confirm both dialogues by clicking 'OK' buttons.

Usage
Right click on a remote SFTP folder to call out the context menu. Select in the menu 'File Custom Commands', 'VS Code' to have the remote folder opened in the VS Code. The custome command can also be accessed via a hotkey or the toolbar. (WinSCP V6)
beelandsofficialmc@gmail.com

Option to open via WinSCP SFTP/FTP as a VSC folder

Hi, I would like to ask for this cool feature, I would like to be able to open folders in Visual Studio Code, it would help me a lot with my work, and most importantly it would be one of the few FTP programs that can do this, because there is nothing on Windows.