Sublime下载安装

  1. 直接下载安装 http://www.sublimetext.com/3
  2. 通过homebrew安装

Package control 安装

  1. 官方文档:http://www.feyon.net/installation
  2. 自动安装: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)
    
  3. 手动安装:

    • 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
  4. 快捷键打开

    • command+shift+p

Plugins

plugins for MarkDown
  1. MarkDown Editing
  2. OmniMarkupPreviewer

    • 快捷键
      • command+option+o
    • 如果遇到404, 复制以下代码到

      • Sublime Text > Preferences > Package Settings > OmniMarkupPreviewer > Settings - User

        {
        "renderer_options-MarkdownRenderer": {
        "extensions": ["tables", "fenced_code", "codehilite"]
        }
        }
        
  3. MarkDown TOC

  4. Table Editor

plugin for Json Pretty
  1. Pretty JSON
    • 快捷键
      • command+control+j
plugin for Python
  1. AutoPep8