Should probably work fine on Sublime Text 2 ;)
List of packages:
PackageControl
Alignment
DocBlockr
GitGutter
PHP-Twig
TrailingSpaces
PHP Code Sniffer
PHP Namespace
Less
Acces to the following configuration file through Sublime Text > Préférences menu.
Use spaces indentation (instead of tabs):
"translate_tabs_to_spaces": true
Slightly highlight the current line:
"highlight_line": true
Display modified files in color (instead of appending an *):
"highlight_modified_tabs": true
- Tab will indent the selected line(s) and Shift+Tab will unindent them.
- On a PHP class, alt+i will generate the namespace of the class (calculated from the directory)
- On a PHP class, alt+u will generate an "use" statement for the class (calculated from the directory)
Before a method declaration, "/**" + tab will generate the following doc comment:
/**
* [execute description]
*
* @param InputInterface $input
* @param OutputInterface $output
*
* @return [type]
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
return $object;
}
Will trim trailing space automatically on fiel save.