Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
my personal setup and configuration of Sublime Text 3 on MacOSX

Setting up Sublime Text 3 for MacOSX

Install Sublime Text 3 :

  1. Download sublime text 3
  2. Setup sublime in command line [1] [2]:
    sudo ln -s "/Applications/Sublime" /usr/local/bin/subl

Install package control

  1. Click View > Show console
  2. Paste this code in the console [5]:
    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( '' + 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. Now we can open command pallete cmd + shift + p

Install themes

Popular theme: Flatland (used) or Soda Dark Theme

After installing a theme, make sure to update your base settings through Sublime Text > Preferences > Settings - User:

  "theme": "Flatland Dark.sublime-theme",
  "color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme"

Final check: Modify default and user settings

  1. Copy paste this default config
  2. Copy paste this user config

Useful plugins:

1. For general coding [3]

  • bracketHighlighter
  • SidebarEnhancement: Extends the number of menu options in the sidebar
  • SublimeCodeIntel
  • SublimeLinter: For error check
  • Requirementstxt: Provides autocompletion and syntax highlighting as well as a nice version management system for your requirements.txt files
  • MarkdownPreview
  • Pretty JSON

2. For git integration[4]

  • Git: Perform all the other git operations right inside Sublime Text.
  • GitGutter: Display the new changes that are not committed yet on the current working file.

Using git plugins for commit and push

  1. Open command pallete cmd + shift + p
  2. Type git add current file
  3. Reopen the command pallete
  4. Type git commit
  5. A new file will open: We can type the commit message in this file
  6. Close the file
  7. Reopen the command pallete
  8. Type git push current branch

3. For python coding

  • Anaconda

4. For HTML/CSS coding

  • Emmet
  • Print to HTML
  • Highlight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.