Prerequisites

node.js

First we’ll install node.js, as SublimeLinter depends on it.

sudo apt-get install build-essential
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
tar xzf node-v0.10.26.tar.gz
cd node-v0.10.26/
./configure && make && sudo make install
sudo npm install -g jshint

PHP5

This is required for all PHP related linting.

sudo apt-get install php5 php5-cli

CTags

We can’t have a proper code editor without CTags.

sudo apt-get install ctags

Sublime Packages

Package manager

First, install the package manager and restart Sublime Text. The following packages can be downloaded from the Package Manager. It can be accessed by pressing Ctrl+Shift+P and typing package control install package in the prompt.

Alignment

The settings for the Alignment plugin reside in the Preferences > Package Settings > Alignment > Settings - User file.

{
    "align_indent" : true,
    "mid_line_tabs" : false,
    "alignment_chars" : ["=", ":"],
    "alignment_space_chars" : ["=", ":"],
    "alignment_prefix_chars" : [
        "+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "."
    ]
}

SublimeLinter

CTags

BracketHighlighter

Block Cursor Everywhere

DocBlockr

Sublime Specific Configuration

These settings reside in the Preferences > Settings - User file.

highlight_line

"highlight_line" : true

highlight_modified_tabs

"highlight_modified_tabs" : true

Global hotkeys

These settings reside in the Preferences > Key Bindings - User file.

[
    { "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
    { "keys": ["ctrl+f5"], "command": "refresh_folder_list" },
    { "keys": ["ctrl+shift+a"], "command": "alignment" }
]