- Download sublime text 3
- Setup sublime in command line [1] [2]:
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
- Click
View > Show console
- 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( '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)
- Now we can open command pallete
cmd + shift + p
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"
}
- Copy paste this default config
- Copy paste this user config
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.
- Open command pallete
cmd + shift + p
- Type
git add current file
- Reopen the command pallete
- Type
git commit
- A new file will open: We can type the commit message in this file
- Close the file
- Reopen the command pallete
- Type
git push current branch
- Anaconda
- Emmet
- Print to HTML
- Highlight