Using the AngularJS Package for Sublime Text

1:进入:https://sublime.wbond.net/installation#st2  选择:SUBLIME TEXT 2 页签,复制一下,因为我是sublime text2,所以选择这个。

2:按组合键 Control +`记得一起按哦

3:打开sublime 的命令控制台。会在窗体的下面显示出来

4:将第一步复制的命令:


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 'Please restart Sublime Text to finish installation') 粘贴进去

5:Install the AngularJS Package:

  • Press ctrl+shift+p (Windows) or cmd+shift+p (OS X) to open the command pallet.
  • Type Package and select Install Package from the options that display:
  • Once the Install Package dialog displays enter AngularJS and press enter.

Note: If you install Sublime Text 2 (instead of 3) you’ll need to follow the step shown here. To get to the user preferences select Preferences –> Settings – User from the menu. 

建议大家使用 Sublime Text 3.按照上面配置可以正常使用。

记得将下载的插件包放在:..\Sublime Text3\Data\Packages 目录下,重启Sublime就可以使用了。

转载自:http://weblogs.asp.net/dwahlin/archive/2013/08/30/using-the-angularjs-package-for-sublime-text.aspx

你可能感兴趣的:(Using the AngularJS Package for Sublime Text)