Automating Live Folder Sync and 'Keep Remote Directory Up to Date' in WinSCP
Watch local project folders in real time and automatically upload modified code files to your remote Linux server the instant you hit Ctrl+S in VS Code.
Watch local project folders in real time and automatically upload modified code files to your remote Linux server the instant you hit Ctrl+S in VS Code.
Watch local project folders in real time and automatically upload modified code files to your remote Linux server the instant you hit Ctrl+S in VS Code. This module is built directly into the core WinSCP.exe (GUI) and WinSCP.com (CLI Scripting) binary included in our 11.6 MB standalone Windows installer and Portable USB edition — requiring zero external paid plugins or cloud uploads.
C:\Program Files (x86)\WinSCP\WinSCP.exe (GUI) and WinSCP.com (CLI Scripting) · Config stored in Registry (HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2) or WinSCP.ini (Portable Mode) · RAM working set: 58 MB (during 4-queue parallel SFTP transfer).
C:\Projects\site\), and open the remote web root in the right pane (/var/www/html/).Ctrl + S (Commands -> Synchronize...), choose Remote, Local, or Both, check Preview changes, and click OK to inspect the exact file diff table.Ctrl + U (Commands -> Keep Remote Directory up to Date...)..php, .py, .js, or .css file to your server within 100 milliseconds.| Mode / Option in WinSCP | Recommended Parameter | Engineering & Workflow Benefit |
|---|---|---|
Keep Remote Up to Date (Ctrl+U) | Real-time NTFS file watcher | Uploads saved code changes immediately while editing in VS Code |
Directory Synchronize (Ctrl+S) | Timestamp or byte-size diff preview | Mirrors local and remote folders with exclude masks (node_modules/, .git/) |
| Transfer Resume & Temp Files | `.filepart` atomic rename | Prevents visitors from seeing half-uploaded files during live deploys |
| Chmod Permission Presets | Auto `0644` files / `0755` dirs | Sets clean Linux POSIX permissions automatically on upload |
Speed up your daily Directory Sync & 'Keep Remote Up to Date' workflow using these built-in hotkeys, or automate batch runs from PowerShell via WinSCP.com /command "open sftp://user@host/ -hostkey=*" "synchronize remote C:\Local /var/www" "exit":
| Shortcut | Action in WinSCP v6.3.5 |
|---|---|
Ctrl + U | Keep Remote Directory Up to Date (live file-watcher auto-uploads on local save) |
Ctrl + S | Synchronize Local and Remote Directories (preview file diffs by timestamp or size) |
Ctrl + P | Open active SFTP session directly inside a PuTTY SSH terminal without re-entering password |
Ctrl + Alt + P (Preferences) | Configure External Editor (VS Code / Notepad++), SSH Ciphers, and INI Portability |
Related tutorials: explore SFTP SSH Key Auth (.PPK / PEM & Pageant), Batch Scripting, CLI & .NET Assembly, or visit our WinSCP Troubleshooting Guide if you hit any OS permission prompts.
Yes. All 7 core modules including Directory Sync & 'Keep Remote Up to Date' are 100% free in WinSCP v6.3.5 with no trial limits.
Yes. The Portable USB build includes the exact same Directory Sync & 'Keep Remote Up to Date' engine and saves your presets locally on the flash drive.
Presets are stored in Registry (HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2) or WinSCP.ini (Portable Mode) (or inside the application directory in Portable mode).
Explore all 20 verified setup tutorials, module walkthroughs, and troubleshooting guides for WinSCP on Windows, macOS, and Linux.