Sublime can support ANGULARJS development that's definitely a cool thing. Below I step by step how to install Angularjs plugin for sublime.
1. Add a Control pack site
Depending on how you install the sublime version, different code is written to the console:
Console Open method: View > Show Console or shortcut CTRL + '
sublime Text 3:
<pre name= "Code" class= "JavaScript" >import urllib.request,os,hashlib; h = ' 7183a2d3e96f11eeadd761d777e62404 ' + ' e330c659d4bb41d3bdf022e94cab3cd0 '; PF = ' 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://sublime.wbond.net/' + pf.replace (', '%20 ')). read (); DH = hashlib.sha256 (by). Hexdigest (); Print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h)) if DH! = H Else Open (Os.pat H.join (IPP, PF), ' WB '). Write (by)
sublime Text 2:
<pre name= "code" class= "HTML" >import urllib2,os,hashlib; h = ' 7183a2d3e96f11eeadd761d777e62404 ' + ' e330c659d4bb41d3bdf022e94cab3cd0 '; 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 ())); by = Urllib2.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')). read (); DH = hashlib.sha256 (by). Hexdigest (); Open (Os.path.join (IPP, PF), ' WB '). Write (by) if DH = = h Else none;print (' Error validating download (got%s instead of%s ), please try manual install '% (DH, h) if DH! = h Else ' Restart Sublime Text to finish installation ')
2. Shortcut key ctrl+shift+p (Windows) or cmd+shift+p (OS X) Open the command line and select Install Package
Choose to install the ANGULARJS package:
If you are installing sublime2 also need to refer here: Click to open the link
Test the installation is successful
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Sublime Installing the Angularjs plugin