Sublime Text
Sublime Text 3 is a code editor for OSX, Windows and Ubuntu. This page contains information which I find relevant.
- ACF Snippets
- Case Conversion
- Colorsublime Themes (Chrome Dev Tools)
- CSS Extended Completions
- DocBlockr
- Emmet
- Gist
- HTML-CSS-JS Prettify
- InsertDate
- LESS
- Minify
- Phpcs (PHP Code Sniffer)
- phpfmt (PHP auto code tidy on save - no config necessary, just install it)
- SideBarEnhancements
- SublimeCodeIntel
- Sublimerge Pro
- WordPress Completions
Make sure that the NodeJS CLI plugins are installed globally.
{
"auto_minify_on_save": true,
"debug_mode": true,
"open_file": false,
"allowed_file_types": [
"js",
"svg"
]
}
Use custom Preferences.sublime-settings to exclude big directories. For example:
"folder_exclude_patterns": [
".svn",
".git",
".hg",
"CVS",
"dist",
"vendor",
"node_modules",
"jspm_packages",
"bower_components"
]
Also see Coding Standards.
$ composer global require phpunit/phpunit
$ composer global require phpunit/dbunit
$ composer global require phing/phing
$ composer global require phpdocumentor/phpdocumentor
$ composer global require sebastian/phpcpd
$ composer global require phploc/phploc
$ composer global require phpmd/phpmd
$ composer global require squizlabs/php_codesniffer
In order to have our Composer dependencies available in bash, we need to add the composer vendor/bin directory to our PATH.
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
source ~/.bashrc
Use Sublime Text's Package Control (Preferences -> Package Control -> Install Package -> Phpcs) to install the plugin Phpcs.
Save the XML file in e.g. your home folder and then reference it in your PHP Code Sniffer configuration: @Sublime Text -> Preferences -> Package Settings -> PHP Code Sniffer -> Settings - User@. Here you can configure if Phpcs should automatically run on save which ruleset to use etc.
Mark Howells-Mead | https://permanenttourist.ch and https://sayhello.ch/ | Wiki since 2016
Use this code freely, widely and for free. Provision of this code provides and implies no guarantee.
Please respect the GPL v3 licence, which is available via http://www.gnu.org/licenses/gpl-3.0.html