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 661
  • Win 257
  • Mac 370
  • Linux 34
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 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
Windows 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 1 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 1 1 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 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