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
| Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |