30 Sep 2009

Notepad++ FTP: Integration with WinSCP

General 7 Comments

The previous version of Notepad++ (5.4.5) had a history of lockups and crashes, I experienced sporadic problems as did many others. A new version has been released (5.5) which claims to have fixed those issues. The development team determined that the plugin FTP Synchronize was one of the culprits of the crashing, and the new installer now automatically disables that plugin.

For FTP editing, I now use Notepad++ along with WinSCP.

To combine the two follow these steps:

Step 1

Click Preferences

  • When first opening WinSCP, click on Preferences on the left, then again on the right.
Add Notepad++

Add Notepad++

  • Once the new dialog opens, click ‘Editors’ on the right, then click the ‘Add’ button.
Find Notepad++

Find Notepad++

  • Click “External Editor” and browse for the Notepad++ executable.
  • Make sure the bottom two checkboxes are left unchecked.
  • Hit “ok”
Move Notepad++ to the top

Move Notepad++ to the top

  • Back at the editors screen, highlight the recently added “Notepad++”.
  • Click the “Up” button until “Notepad++” is at the top of the editor list.

Notepad++ and WinSCP are now integrated! When browsing your website files in WinSCP, simply right click the file and hit “Edit”. This will open a new tab in Notepad++, and once you save changes, will automatically upload the file back through WinSCP.

7 Responses to “Notepad++ FTP: Integration with WinSCP”

  1. David says:

    Thanks so much for sharing! Didn’t know about WinSCP, but it works much faster and better then FTP_Synchronize plugin.

    The only down side is that for browsing files you need to go back to WinSCP window.

  2. Zector says:

    Thanks for sharing!
    It works well!

  3. leo says:

    Tnx very much!! For me easier to edit files, instead of editor(s) in linux environment (yet)
    (via localhost)

  4. syndrael says:

    That works.. but only with one file in Notepad++.
    If you save a second edited file, a modal window is displayed : Save failed, please check if this file is opened in another program.
    What can we do against that ??

  5. Necroposter says:

    The problem is that notepad++ doesn’t have access rights to save the file in the WinSCP Temp Folder (dunno why it works once)

    The solution is to either goto notepad++.exe and set to “Run As Administrator” (which will get annoying fast as you have to click the elevation box every time you edit a file)

    Or goto WinSCP.exe and check the “Run As Administrator” box. This will allow WinSCP to load Notepad++ as administrator and you won’t have to deal with the UAC notices everytime.

  6. iisakki says:

    Yep, I have used WinSCP + Notepad++ for some years now to edit files directly on the server. However I also have the same problem as syndrael: “Save failed, please check whether if this file is opened in another program” when trying to save a second file (one file at a time works fine) and this error comes only when I’m on a WLAN connection (wifi). Editing and saving multiple files is fine on wired Ethernet connection! I have used two diffent computers and different networks and the scheme is always the same: multiple file saving only works on ethernet connection, not on wifi. Any ideas on this one? I just updated the latest WinSCP 4.3.5.

  7. chad says:

    I highly recommend moving to a more integrated solution like Aptana or Netbeans. Since I’ve written this post I’ve moved onto Aptana which offer a much more fluid and elegant way of editing files directly on the server.

Leave a Reply