Search code examples
ubuntuftpsublimetext3winscpwine

How to set WinSCP default editor to Sublime Text on Ubuntu 14.10?


I know that to change the editor I go to Preferences -> Editors and select whatever I want, but how do I set it to Sublime Text 3 ? I'm supposed to write in the external editor the path to launcher of my desired editor, but where's the install path for sublime? If I just write sublime in that input field, I get an error that it doesn't find such a thing on my system (I can start it through terminal with that command).

Note that I'm using WinSCP with wine (that's obvious, I suppose). Any help appriciated :)


Solution

  • You can use the command subl that is located in /usr/bin/subl (/usr/bin is in $PATH).

    For me the executable is located in /opt/sublime_text/ on Linux Mint, but maybe is better to use the subl command.