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 689
  • Win 269
  • Mac 385
  • Linux 35
Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22
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 1 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 1 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 0 0 0 0 0 0 0 0
Linux 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 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