Open the terminal, then run:
$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
$ sudo apt-get update
$ sudo apt-get install sublime-text
Open the terminal, then run:
$ sudo add-apt-repository ppa:webupd8team/sublime-text-3
$ sudo apt-get update
$ sudo apt-get install sublime-text-installer
Download it straight from Sublime Text Official Website.
Just take a look at the Official Documentation.
You can install all the packages using the command palette via Ctrl + Shift + p (Linux & Windows) or Cmd + Shift + p (Mac OS X).
Otherwise, just click on Preferences > Package Control > Install Package instead.
Go to Preferences, then click on Settings - User.
{
"auto_indent": true,
"color_scheme": "Packages/User/SublimeLinter/Nexus (SL).tmTheme",
"detect_indentation": false,
"ensure_newline_at_eof_on_save": true,
"font_size": 12.0,
"ignored_packages":
[
"Vintage"
],
"indent_to_bracket": false,
"scroll_past_end": true,
"smart_indent": true,
"tab_size": 4,
"theme": "Nexus.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": true,
"use_tab_stops": true,
"word_wrap": false
}
Note:
For the Nexus theme in Sublime Text 2, the color scheme path is:
"color_scheme": "Packages/Theme - Nexus/Nexus.tmTheme",
For the Nexus theme in Sublime Text 3, the color scheme path is:
"color_scheme": "Packages/User/SublimeLinter/Nexus (SL).tmTheme",
For issues related to indentation of files under directories, take a look at: Too much indent for files under a folder.