- Visit http://www.sublimetext.com/3;
- Download the latest OSX build;
- Open the downloaded dmg archive and move Sublime Text 3 to the Applications folder.
Make Sublime Text 3 available in the terminal by creating a symbolic link to its CLI.
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
You can now open a file from the terminal as follows:
subl <file>
Package Control system is used to install external packages (i.e. add-ons) to Sublime. Unfortunately it's not part of the Sublime Text core distribution. So you need to install it manually.
- Open Sublime Text 3;
- Hit
ctrl+`
to access the console; - Copy paste the appropriate Python code from https://packagecontrol.io/installation and hit Enter.
Material theme is on of the most polished themes for Sublime Text. The easiest way to install is by using the Sublime Package Control system.
- Open Sublime Text 3;
- Go to
Tools > Command Palette
or just hitCommand + Shift + P
; - Choose Package Control: Install Package;
- Find Material Theme and hit Enter.
- Open Sublime Text 3 and hit
Command + Shift + P
; - Choose Package Control: Install Package;
- Find SideBarEnhancements and hit Enter.
- Open Sublime Text 3 and hit
Command + Shift + P
; - Choose Package Control: Install Package;
- Find TrailingSpaces and hit Enter.
- Go to
Sublime Text 3 > Preferences > Settings - User
; - Copy past the following settings:
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"font_size": 17,
"ignored_packages": ["Markdown", "Vintage"],
"indent_guide_options": ["draw_normal", "draw_active"],
"jsdocs_align_tags": "no",
"line_padding_bottom": 1,
"line_padding_top": 1,
"material_theme_contrast_mode": true,
"material_theme_tabs_separator": true,
"overlay_scroll_bars": "enabled",
"rulers": [120],
"tab_size": 2,
"theme": "Material-Theme.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"folder_exclude_patterns": [
".svn",
".git",
".hg",
"CVS",
"node_modules",
"bower_components"
]
}
Make sure you have already installed the Sublime Package Control system.
The DocBlockr package provides creation and code completion of comment blocks.
- Open Sublime Text 3 and hit
Command + Shift + P
; - Choose Package Control: Install Package;
- Find DocBlockr and hit Enter.
- Open Sublime Text 3 and hit
Command + Shift + P
; - Choose Package Control: Install Package;
- Find SublimeLinter and hit Enter.
- Make sure you have already installed Node.js and npm - if not, follow the Install node.js and npm guide;
- Install ESLint by typing the following in a terminal:
sudo npm install -g eslint
- Install eslint-config-airbnb
sudo npm install -g eslint-config-airbnb eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-import
- Make sure you have installed SublimeLinter and eslint;
- Open Sublime Text 3 and hit
Command + Shift + P
; - Choose Package Control: Install Package;
- Find SublimeLinter-contrib-eslint and hit Enter.