[Sublimetext] installation package management

Source: Internet
Author: User

Due to various reasons for the visit, so record for yourself to use, the original address is as follows:

Http://www.bonusbits.com/wiki/HowTo:Setup_Package_Control_for_Sublime_Text

Method 1 (Sublime Text Script)

This won't work if you are behind a proxy. If you ' re behind a proxy, use Method 2.

  1. Open Sublime Console
    Ctrl + '
  2. Sublime Text 2
    ImportUrllib2,Os; Pf=' Package Control.sublime-package '; Ipp= Sublime.Installed_packages_path();Os.Makedirs(IPP)IfNotOs.Path.Exists(IPP)ElseNone;Urllib2.Install_opener(Urllib2.Build_opener(Urllib2.Proxyhandler()));Open(Os.path. join ( ipp, pf,  ' WB '   Write ( urllib2. Urlopen (  ' http://sublime.wbond.net/'  +pf. Replace (  ", '%20 '   ). read () ) ; print (  ' Please restart Sublime Text to finish installation ' Span class= "Br0")
  3. Sublime Text 3
    ImportUrllib.Request,Os, Hashlib; H=' eb2297e1a458f27d836c04bb0cbaf282 ' +' D0e7a3098092775ccb37ca9d6b2e4b7d ';p F=' Package Control.sublime-package '; Ipp= Sublime.Installed_packages_path();Urllib.Request.Install_opener(Urllib.Request.Build_opener(Urllib.Request.Proxyhandler())); By=Urllib.Request.Urlopen(' http://packagecontrol.io/' + PF.Replace(‘ ‘,'%20 ')).Read(); Dh= Hashlib.sha256 Hexdigest () ; print ( ' Error validating download (got %s instead of %s), please try Manual Install '  % , h)  if dh != h else open (os. Path. join ( ipp, pf,  ' WB '   Write (By)
  4. Restart Sublime

Method 2 (manually)

If you is behind a proxy use the This method. After installing then set your proxy settings

    1. Download plugin file
      http://sublime.wbond.net/Package%20Control.sublime-package
    2. copy  package control.sublime-package  to the  Install packages< /strong> folder under Sublime Text install folder.
      1. Windows
         C:\Users\username\AppData\Roaming\Sublime Text 2\instal LED Packages 
      2. Mac
        SUDO&N Bsp cp ~/downloads/package\ control.sublime-package ~< Span class= "sy0" >/library/application\ support/sublime\ text\ 3/installed\ packages/
    3. Restart Sublime

Related articles:

http://blog.jobbole.com/82527/

[Sublimetext] installation package management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.