The method of installing plug-ins in sublime
This article mainly introduces the method of installing plug-ins in sublime, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
Sublime is a lightweight editor with powerful functions and easy to install plug-ins. However, as a novice, I don't know how to install plug-ins at first. Here are two methods summarized by the sublime tutorial column:
Install through package control.
Newly installed sublime does not have this option. Follow these steps to install the package control tool.
1. Take sublime text3 as an example, open the editor, Ctrl+ `(the key to the left of 1), call up the command line, and paste the following code:
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 ())
Sublime text2
Import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path (); os.makedirs (ipp) if not os.path.exists (ipp) else None; 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')
Enter and restart the editor.
2. Open package control (shortcut key Ctrl+shift+p)
Enter install Package and select install Package
Then type the plug-in you want to install and install it.
Download the plug-in package directly
Download the package package and copy it directly to package.
Thank you for reading this article carefully. I hope it will be helpful for everyone to share the method and content of sublime plug-in installation. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!