Home >Development Tools >sublime >How to install Package control component in Sublime
This article mainly introduces How to install the Package control component in Sublime.
So in the previous article, I have introduced to you how to install Sublime.
Package Control is the Sublime Text package manager. It contains a list of over 2,500 packages available for installation, and users can add any GitHub or BitBucket repository themselves. To put it simply, sublime can only install various plug-ins after installing the Package control component.
Sublime has two ways to install the Package control component:
The first method:
Open the sublime interface and press Ctrl shift Pkey combination, and then you can bring up the following interface:
Search and select the second option install package control, and then click directly.
After installation, the following prompt message will appear, click OK.
Finally, when you see the following components displayed, it means the component installation is successful.
Second method:
Open the sublime interface and press Ctrl ` (This symbol is tab Press the key combination above) to bring up the command line.
Then paste the following code into the command line and press Enter:
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
Then wait patiently for installation.
#Similarly, if we see the following options, it means that the Package control component is installed successfully.
This article is about the two methods of sublime installing the Package control component. You can choose which method to install according to your own needs. Currently, no matter Both installations are very simple. I hope this article will be helpful to friends in need!
The above is the detailed content of How to install Package control component in Sublime. For more information, please follow other related articles on the PHP Chinese website!