VSCode how to connect to WinSCP

Open winscp from navigation goto Files > Edit > Configure..

Add > External Editor Set path "%LOCALAPPDATA%\Programs\Microsoft VS Code\Code.exe"


Under Options/Preferences, it is in the Editors settings panel. Add a external editor on the editors page and move to the top position

IMPORTANT -- When VSCode is installed, it asks if it is for you or for all users on your machine. That makes a difference where the Code.exe is located

Win 10 x64 for ALL Users - "C:\Program Files\Microsoft VS Code\Code.exe" !.!
Win 10 x64 for just you - "C:\Users\<profile name>\AppData\Local\Programs\Microsoft VS Code\Code.exe" !.!

enter image description here


There is a VScode extension that do the same thing as WinSCP synchronisation editing. One advantage with this extension : you can edit the entire folder, then not edit file per file.


You can add VSCode as an external editor in WinSCP. Goto View/Preferences then select Editors in the box on the left, then click Add under Editor Preferences, then under Editor select External Editor and put in the path something like this: "C:\Program Files (x86)\Microsoft VS Code\Code.exe" !.!