Sublime Text插件安装与快捷键

参考:https://sublime.wbond.net/installation#st2

Ctrl+` 快捷键(qq拼音键冲突,自行设置屏蔽之)或者菜单栏->View > Show Console

自动在线安装

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

 

Sublime text3

 

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

 

上面2段代码复制到console中,并运行。代码执行意思:创建安装包文件夹,并下载插件到此目录

如果网络异常,手动安装

  1. Click the Preferences > Browse Packages… menu

  2. Browse up a folder and then into the Installed Packages/ folder

  3. Download Package Control.sublime-package and copy it into the Installed Packages/ directory

  4. Restart Sublime Text

        还推荐一个前端神器emmet。html,css写得飞起。ctrl+e自动补全另外sublime列编辑模式,可以 按住shift+鼠标左键,或者长按鼠标中键


你可能感兴趣的:(sublime)