Sublime Text Configuration

Installation

Download latest binary for any platform here.

Ubuntu Apt Repository

Add the sublime repository and install.
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
apt install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
apt update
apt install libgtk2.0-0 sublime-text

Important File Locations

Configuration files can be modified directly in sublime via preferences › settings.

Generally, you should never have to modify file directly; you can copy and paste directly with the menu settings.

Windows

Location

Purpose

%appdata%\Sublime Text 3

Configuration and package locations

%appdata%\Sublime Text 3\Packages\User\Preferences.sublime-settings

User preferences

%appdata%\Sublime Text 3\Packages\User\Package Control.sublime-settings

User installed packages

%appdata%\Sublime Text 3\Installed Packages\Package Control.sublime-package

Package control

Updated: None

Linux

Location

Purpose

~/.config/sublime-text-3

Configuration and package locations

~/.config/sublime-text-3/Packages/User/Preferences.sublime-settings

User preferences

~/.config/sublime-text-3/Packages/User/Package Control.sublime-settings

User installed packages

~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package

Package control

Updated: None

OSX

Location

Purpose

~/Library/Application Support/Sublime Text 3

Configuration and package locations

~/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settings

User preferences

~/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings

User installed packages

~/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package

Package control

Updated: None

Configuration

Copy and paste into user preferences preferences › settings.
 1{
 2  "font_face": "SF Mono Bold",
 3  "font_size": 12,
 4  "ignored_packages":
 5  [
 6    "Vintage"
 7  ],
 8  "rulers": [80],
 9  "word_wrap": false,
10  "tab_size": 2,
11  "translate_tabs_to_spaces": true
12}

Download settings here.

Note

Preferences can also be set by replacing the file directly: cp Preferences.sublime-settings <sublime config>/Packages/User

Automatically Installing Packages

Sublime will automatically keep packages up to date if they are listed as Installed. You can use this to automatically installed Package Control, as well as packages on a fresh installation. Some recommended packages are here.

Download the package control binary and add installed packages.
wget https://packagecontrol.io/Package%20Control.sublime-package <sublime config>/Installed\ Packages/
cp Package\ Control.sublime-settings <sublime config>/Packages/User

Download package control settings file.

Upon startup of sublime, it will automatically install the missing packages now listed in your installed packages.

Force Unix Line Endings on Save

This will save all files with unix lines endings regardless of platform or setting.

Downfile file here

Copy file to <sublime config>/Packages/User. Remove to disable.

Markdown Editing

Install MarkdownEditing and MonokaiC packages.

preferences › package settings › markdown editing › markdown GFM Settings – user › Markdown.sublime-settings

0600 user user <sublime config>/Preferences/User/Markdown.sublime-settings
1{
2  "color_scheme": "Packages/MonokaiC/themes/ME-MonokaiC.tmTheme",
3}

References

  1. Settings Files

  2. Customizing Settings Files

  3. Package Control Binary

  4. Using Sublime text from the command line