Treehouse: Grow your CSS skills. Land your dream job.

Pretty Sublime!

  • # March 5, 2013 at 3:44 am

    one verrrrrrrrry bad think about sublime is that it doesn’t support FTP! there is a veeeeeeery complicated [Plugin]( “Sublime SFTP Plugin”) about SFTP. how can i install this only FTP plugin for Sublime?!
    PS: are there any other FTP plugins for sublime?

    # March 5, 2013 at 3:54 am

    Why it’s complicated? I mean all you need is open config file, write

    type – ftp or sftp

    host – your ftp host

    user – your ftp username

    pw – your ftp password

    path – what folder you want to take files from

    And that’s all. If you want upload files automatically after saving them, use “upload_on_save”. I don’t understand what can be easier? :)

    # March 5, 2013 at 4:06 am

    thanks @DADE you are right but first you should install it! how can i install that? and where is config file?

    # March 5, 2013 at 4:17 am

    1. open console (ctrl+~) and type:

    import urllib2,os;pf=’Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),’wb’).write(urllib2.urlopen(‘’+pf.replace(‘ ‘,’%20′)).read())

    2. Press enter, it will enable package control.

    3. Restart sublime

    4. Go to Preferences – Package Control

    5. type: Install package

    6. type: SFTP

    7. Open folder you want to use for FTP files.

    8. Right click it – SFTP/FTP – Map To Remote – here’s your config file.

    or you can download archive and extract it to %appdata%/Sublime Text 2/Packages folder.

    # March 5, 2013 at 4:23 am

    thanks very much @DADE but here is my problems:

    1. when i do **step 1** of yours i get: *ImportError: No module named ‘urllib2’*

    2.there is no **Package Control** item in Preferences

    # March 5, 2013 at 4:26 am

    You are using Sublime 3? There won’t be any package control button untill step 1 will be done.

    # March 5, 2013 at 4:26 am

    did i mentione i use ST3?! yes i do use ST3! Sorry i forgot that

    # March 5, 2013 at 4:34 am

    Okay, here’s what you can do. If you don’t really need package controll just download SFTP archive from their webpage and extract it to %appdata%/Sublime Text 2/Packages folder.

    If you need package controll the only way you can install it is via git.
    Here’s what you need to do:

    cd Packages/
    git clone “Package Control”
    cd “Package Control”
    git checkout python3

    # March 5, 2013 at 4:40 am

    ok, lots of bugs and bad support for ST3 i think i should install ST2 and use your instructions @DADE. thanks for your help. it was very helpful

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.