Skip to content

Instantly share code, notes, and snippets.

@wcarhart
Last active August 31, 2018 05:51
Show Gist options
  • Save wcarhart/942f229202730f00e9920843ba9e2fce to your computer and use it in GitHub Desktop.
Save wcarhart/942f229202730f00e9920843ba9e2fce to your computer and use it in GitHub Desktop.
Instructions for installing Sublime packages (ST3)

Installing Package Manager:

  1. Press Ctrl+` to open Sublime's command prompt.
  2. Paste in:
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)

If the above command fails, it's likely because it needs to be updated. Go here for the source of the above command.

  1. Restart Sublime.

Installing a new package:

  1. Press Ctrl+Shift+P to open the package manager command prompt.
  2. Type install package, and search for desired package. Press enter to select.
  3. Restart Sublime (if necessary).

Great packages to have:

  1. The BEST Sublime theme out there (yes, fight me) --> ayu
  2. HighlightWords - Allows for custom highlighting for common keywords and regex like TODO and FIXME. To add highlights for TODO, FIXME, etc., do:
  • Select Preferences >> Package Settings >> HighlightWords
  • Copy settings from default (read-only) to user
  • Edit settings file to reflect desired highlights.
  1. Dockerfile Syntax Highlighting - Syntax highlighting for Dockerfiles.

  2. For Jenkinsfile syntax highlighting, go to View >> Syntax >> Groovy, because Jenkinsfiles are written in Groovy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment