Sublime Text 2 Convenient way to install the package control

Source: Internet
Author: User
Tags sublime text



The package control is a packet manager for ST2.



Installation of the package control



After installing the ST2, bring up the console from the Views-show console or ctrl+~.



To complete the installation, paste the following Python code in and enter execution:


ImportUrllib2,os; pf='Package Control.sublime-package'; IPP = Sublime.installed_packages_path (); Os.makedirs (IPP)if notOs.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('Restart Sublime Text to finish installation')


The GIT address with the package control is attached: Https://github.com/wbond/package_control






Use of the package control



1) from the menu Tools-command Paletter or the shortcut key Ctrl + Shift + P Enter, enter the install after the return, select the plug-in you need to enter the installation. The bottom left corner will indicate whether the installation was successful.



2) in command Paletter, install is responsible for installing plug-ins, list lists installed plug-ins, remove removed installed plug-ins, upgrade upgrade plug-ins, disable disable plugins, enable plug-ins.






Sublime Text 2 Convenient way to install the package control


Related Article

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.