Skip to content

Instantly share code, notes, and snippets.

@vihuvac
Last active October 3, 2018 21:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vihuvac/7011164 to your computer and use it in GitHub Desktop.
Save vihuvac/7011164 to your computer and use it in GitHub Desktop.

Sublime Text (2 / 3) Installation Guide

Ubuntu (12.04, 13.04, 14.04, 15.04, 15.10) / Elementary OS (Luna / Freya) / Linux Mint(Cinnamon, Mate) / Mac OS X / Windows

1. Installation (Linux Based OS)

Sublime Text 2

Open the terminal, then run:

$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
$ sudo apt-get update
$ sudo apt-get install sublime-text

Sublime Text 3

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

1.1 Mac OS X & Windows

Download it straight from Sublime Text Official Website.

2. Install Package Control

Just take a look at the Official Documentation.

3. Install Some Necessary Packages

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.

  • Alignment
  • Aligntab
  • GitGutter
  • JsFormat
  • LESS
  • Markdown Preview
  • PHP-Twig
  • PlainTasks
  • Pretty JSON
  • Pretty YAML
  • Pretty Ruby
  • HTML/CSS/JS Prettify
  • SublimeCodeIntel
  • SublimeLinter

Addicional Packages

Optional Packages

  • Vagrant
  • Puppet

4. Customize User Settings

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment