Skip to content

Instantly share code, notes, and snippets.

@TheDonDope
Last active August 30, 2023 18:35
Show Gist options
  • Save TheDonDope/e64c8d09ab2b6b35be82 to your computer and use it in GitHub Desktop.
Save TheDonDope/e64c8d09ab2b6b35be82 to your computer and use it in GitHub Desktop.

Sublime Text Packages

Prerequisites

The installation of Package Control is neccessary. Follow the instructions here:

  1. Open Sublime Text
  2. Open the console via View > Show Console or Ctrl + `
  3. Paste the following:
import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; 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)
  1. Hit Enter
  2. Restart Sublime Text
  3. You can now access Package Control from the Command Palette via Ctrl + Shift + P

List of useful Packages

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