天天看點

sublime3 BufferScroll插件實作折疊功能

install packagecontrol

crtl+~,在最下面輸入

<code>import</code> <code>urllib.request,os,hashlib; h = </code><code>'2915d1851351e5ee549c20394736b442'</code> <code>+ </code><code>'8bc59f460fa1548d1514676163dafc88'</code><code>; pf = </code><code>'Package Control.sublime-package'</code><code>; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( </code><code>'http://packagecontrol.io/'</code> <code>+ pf.replace(</code><code>' '</code><code>, </code><code>'%20'</code><code>)).</code><code>read</code><code>(); dh = hashlib.sha256(by).hexdigest(); print(</code><code>'Error validating download (got %s instead of %s), please try manual install'</code> <code>% (dh, h)) </code><code>if</code> <code>dh != h </code><code>else</code> <code>open</code><code>(os.path.</code><code>join</code><code>( ipp, pf), </code><code>'wb'</code> <code>).write(by)</code>

2.preferences-&gt;packagecontrol

install,會有顯示,選擇install條目,然後輸入BufferScroll

3.使用

ctrl+shift+[

折疊效果在下次就會儲存了

4.啟動報錯 比如bz2

<a href="https://packagecontrol.io/installation#st2" target="_blank">https://packagecontrol.io/installation#st2</a>

https://packagecontrol.io/Package%20Control.sublime-package

If for some reason the console installation instructions do not work for you (such as having a proxy on your network), perform the following steps to manually install Package Control:

Click the Preferences &gt; Browse Packages… menu

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

Restart Sublime Text

本文轉自 liqius 51CTO部落格,原文連結:http://blog.51cto.com/szgb17/1789435,如需轉載請自行聯系原作者

上一篇: Hadoop Hive
下一篇: 安裝LNMP環境

繼續閱讀