Setting up Sublime2
From MoodleDocs
According Wikipedia Sublime Text is a cross-platform text and source code editor, with a Python API. The chrome was inspired by Vim. Its functionality is also extendable with sublime-packages; Sublime Text is not open source software nor free software, but some of the extending packages have free-software licenses and are community-built and maintained.
Sublime Settings
For Moodle Development:
Preferences -> Settings (default or user)
Tab size and spaces:
"tab_size": 4,
// Set to true to insert spaces when tab is pressed "translate_tabs_to_spaces": true,
Sublime plugins for PHP and Moodle Development
For installing new plugins in Sublime2, the best way is to use the Sublime Package Control, see installation instructions