2

Sublime Text 3 插件安装

 1 year ago
source link: https://forrestsu.github.io/posts/tools/sublime-text-3-%E6%8F%92%E4%BB%B6%E5%AE%89%E8%A3%85/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Sublime Text 3 插件安装

2016年5月12日
| 字数 1367
| Tools
| 阅读 11

1 安装package control包管理器

可通过命令行的方式和手工下载的方式,按 ctrl+\ `进入控制台,输入下面的命令,然后重启st即可:

import urllib.request,os,hashlib; h = ‘2915d1851351e5ee549c20394736b442’ + ‘8bc59f460fa1548d1514676163dafc88’; 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://packagecontrol.io/' + 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)

下面的插件都可以通过 ctrl+shift+p ,输入插件名安装,通过package control 方便统一管理,统一升级。还可以自己通过git下载,自己定期升级。

2 安装theme-soda主题

点击“Preferences->Browse Packages”,在打开的文件目录中启动cmd,输入下面的命令,下载插件。

git clone https://github.com/buymeasoda/soda-theme/ “Theme - Soda”

然后在"Preferences->settings user"配置里面添加

“theme”: “Soda Dark 3.sublime-theme”

3 ConvertToUTF8

这个插件能够解决中文乱码的问题,支持多种编码(eg:utf-8, GB2312,etc.),还可以将中文直接转为韩文、日文。

4 Emmet (+PyV8)

目前改名叫做emmet-sublime,写前端的神器,具体配置点击上面的连接查看。 注意:安装这个插件前需先安装pyv8-binaries,选择对应的zip包下载后,解压到ST3的插件目录(点击 Preferences->browse packages进入)下的PyV8目录下(这个目录没有可以手工创建),比如Windows下需要解压下图的两个压缩包即可。

5 WordCount

统计单词个数

6 HexViewer

16进制分析器,安装后直接ctrl+shift+p,输入hex ,选择toggle hex view即可将当前文件以16进制查看。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK