Sublime snippets for WordPress Customizer.
wpCustomizerAddPanelwpCustomizerAddSectionwpCustomizerAddSettingwpCustomizerAddControlBasicwpCustomizerAddControlImagewpCustomizerAddControlUploadwpCustomizerAddControlColorwpCustomizerPostMessageJSBasicwpCustomizerRegisterFunctionYou can do a fuzzy search inside PHP or JS file with initials of the snippets’ names. E.g. To add a WP Customizer Add Pannel you can just type wpcap and Sublime will suggest the snippet. If that doesn’t happen read the optional tip below. You can also open Package Control’s Command Pallet: Command+Shift+P on Mac Ctrl+Shift+P on Windows or Linux and search for these snippets.
WP Customize snippets are meant to bring ease to your workflow. All you have to do is select a snippet and then presstab button to go from one editable area to another.
Sublime won’t autocomplete PHP files when there is no closing ?> tags , so go to Sublime Text > Preferences > Settings-User add this snippet:
"auto_complete_selector": "source, text",
The preferred method of installation is via Package Control.
Command+Shift+P on Mac Ctrl+Shift+P on Windows or Linux.Install Package and hit Return or Enter. A list of available packages will be displayed.WordPress Customizer and hit Return or Enter. The package will be downloaded to the appropriate directory (You can watch the progress bar in the left bottom bar of Sublime).WordPress-Customizer in the Sublime Text Packages directory for your platform:
git clone https://github.com/ahmadawais/Sublime-WP-Customizer.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/WordPress-Customizergit clone https://github.com/ahmadawais/Sublime-WP-Customizer.git %APPDATA%\Sublime/ Text/ 3/Packages/WordPress-Customizergit clone https://github.com/ahmadawais/Sublime-WP-Customizer.git ~/.config/sublime-text-3/Packages/WordPress-Customizergit clone https://github.com/ahmadawais/Sublime-WP-Customizer.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/WordPress-Customizergit clone https://github.com/ahmadawais/Sublime-WP-Customizer.git %APPDATA%\Sublime/ Text/ 2/Packages/WordPress-Customizergit clone https://github.com/ahmadawais/Sublime-WP-Customizer.git ~/.config/sublime-text-2/Packages/WordPress-CustomizerYou can manually install by cloning this repository into your Sublime Text Packages directory. Get to it quickly from within Sublime via the menu at Sublime Text > Preferences > Browse Packages. So, browse the Packages directory in terminal and clone this repository inside it by running the following command.
$ git clone https://github.com/ahmadawais/Sublime-WP-Customizer.git WP-Customizer
Packages directory can be found in
/Users/{user}/Library/Application Support/Sublime Text 2/Packages/Users/{user}/Library/Application Support/Sublime Text 3/PackagesC:\Users\%username%\AppData\Roaming\Sublime Text 2\PackagesC:\Users\%username%\AppData\Roaming\Sublime Text 3\PackagesGPL v2.0 or later. Copyright (C) 2016 Ahmad Awais.