前端神器-sublime插件安装及使用

来源:互联网 发布:小米秒杀软件 编辑:程序博客网 时间:2024/05/17 08:29

     今天研究了一下sublime,瞬间发现sublime text 简称ST简直是前端神器!拥有超强的代码编写能力,

         


详情请看:http://www.sublimetext.com/


sublime还可以将表达式转换为html标签,如下图:如下表达式,


按ctrl+E之后,就会变为


是不是很爽!!!!



sublime的插件安装,推荐使用package control组件

安装方法如下:

    首先,按快捷键ctrl+~ 调出命名控制行:然后如果是text2输入如下命令:

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')

如果是text3输入如下命令

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.path.join( ipp, pf), 'wb' ).write(by)


具体安装请看https://sublime.wbond.net/installation#st3


安装好了之后,可以用package control安装你想要的插件:

我们先来安装ement, 

打开package control  输入install package 然后找到emmet

点击安装,重启sublime就可以了。具体请看:https://github.com/sergeche/emmet-sublime#readme


具体sublime的使用,你用下就会喜欢上她!!!!



2 0