SublimeText 简单配置(持续更新中...ing)
Sublime下载安装
- 直接下载安装 http://www.sublimetext.com/3
- 通过homebrew安装
Package control 安装
- 官方文档:http://www.feyon.net/installation
自动安装:ctrl+` 快捷键 或者 the View > Show Console, 输入以下代码
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; 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)
手动安装:
- the Preferences > Browse Packages
- go into the Installed Packages/ folder
- Download Package Control.sublime-package and copy it into the Installed Packages/ directory
- Restart Sublime Text
快捷键打开
- command+shift+p
Plugins
plugins for MarkDown
- MarkDown Editing
OmniMarkupPreviewer
- 快捷键
- command+option+o
如果遇到404, 复制以下代码到
Sublime Text > Preferences > Package Settings > OmniMarkupPreviewer > Settings - User
{ "renderer_options-MarkdownRenderer": { "extensions": ["tables", "fenced_code", "codehilite"] } }
- 快捷键
MarkDown TOC
Table Editor
plugin for Json Pretty
- Pretty JSON
- 快捷键
- command+control+j
- 快捷键
plugin for Python
- AutoPep8