Sometimes it is very useful to be able to edit files stored on a Linux machine in a Windows application. This can be a handy setup when you want to store your source code on Linux to be able to execute it against a Linux Python interpreter but you would like to edit it in a rich GUI application such as PyCharm or Eclipse. To achieve this, you can use an open source framework that mounts a Linux directory as a Windows drive from which you can add your files to a PyCharm project.
Another use case is when an application you need to use is available under Windows only, but copying the files from Windows to Linux upon every edit is tedious.
To mount a Linux directory in Windows:
- Install https://www.microsoft.com/en-US/download/details.aspx?id=40784 (install x64).
- Install https://github.com/dokan-dev/dokany/releases/tag/v0.7.4 (ignore a message saying do you want to download the VS runtime – this is because it installs libraries for x86 you will not need, just click Cancel).
Download and run https://github.com/feo-cz/win-sshfs/releases/tag/220.127.116.11. It will be available in your tray.
Mount a drive as described in the section Using Win-SSHFS to Mount Remote File Systems on Windows at https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh.
You can optionally choose to mount a Linux directory on Windows start up. Extremely handy.