Installing Package Manager:
- Press
Ctrl+`
to open Sublime's command prompt. - 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.
- Restart Sublime.
Installing a new package:
- Press
Ctrl+Shift+P
to open the package manager command prompt. - Type
install package
, and search for desired package. Press enter to select. - Restart Sublime (if necessary).
Great packages to have:
- The BEST Sublime theme out there (yes, fight me) --> ayu
- HighlightWords - Allows for custom highlighting for common keywords and regex like
TODO
andFIXME
. To add highlights forTODO
,FIXME
, etc., do:
- Select Preferences >> Package Settings >> HighlightWords
- Copy settings from
default
(read-only) to user - Edit settings file to reflect desired highlights.
-
Dockerfile Syntax Highlighting - Syntax highlighting for Dockerfiles.
-
For
Jenkinsfile
syntax highlighting, go to View >> Syntax >> Groovy, becauseJenkinsfile
s are written in Groovy.