Craft Development Snippets
Some snippets for when you are developing plugins on Craft, created for Sublime Text 3.
Details
Installs
- Total 727
- Win 290
- Mac 397
- Linux 40
| May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Craft Sublime Snippets
Some snippets for when you are developing plugins on Craft, created for Sublime Text 3.
These snippets have been made from looking at the plugin docs and also Pixel & Tonic's coding standards.
Installation
These snippets are not yet on Package Control, but they will be added soon hopefully. For now to install simply follow these steps:
OSX
cd "~/Library/Application Support/Sublime Text 3/Packages"
Windows
cd "C:\Users\YOUR_USERNAME\AppData\Roaming\Sublime Text 3\Packages"
Inside Packages
git clone https://github.com/alecritson/Craft-Sublime-Snippets.git "craft-snippets"
Available snippets
| Snippet | Output | Reference |
|---|---|---|
craft-class-comm |
Class and interface DocBlock comment | link |
craft-method-comm |
Method DocBlock comment | link |
craft-property-comm |
Property DocBlock comment | link |
craft-h1-comm |
Heading one comment | link |
craft-h2-comm |
Heading two comment | link |
craft-controller-class |
Controller class scaffold | link |
craft-fieldtype-class |
FieldType class scaffold | link |
craft-model-class |
Model class scaffold | link |
craft-record-class |
Record class scaffold | link |
craft-service-class |
Service class scaffold | link |
craft-variables-class |
Template Variables class scaffold | link |
craft-widget-class |
Widget class scaffold | link |