ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Craft Development Snippets

by alecritson ALL

Some snippets for when you are developing plugins on Craft, created for Sublime Text 3.

Details

Installs

  • Total 698
  • Win 274
  • Mac 388
  • Linux 36
Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6
Windows 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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 1 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