SproutCore Snippets and JSHint Integration
A SproutCore package for Sublime Text 2
- Total 2K
- Win 1K
- Mac 462
- Linux 191
|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||Mar 30||Mar 29||Mar 28||Mar 27||Mar 26||Mar 25||Mar 24||Mar 23||Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10|
A SproutCore package for Sublime Text 2 and 3.
This package includes several useful SproutCore specific snippets and integration with JSHint.
To use this package you must first install jshint
and ensure that
jshint is in your environment path.
Install node-jshint using npm
$ npm install -g jshint
Install the SproutCore package using Package Control in Sublime Text
Package Control: Install Package
This package runs
to catch errors early before going to the browser and testing. It also allows
you to catch potentially dangerous code like implied globals and redeclared
As part of the JSHint integration, this package also includes a default .jshintrc file that it uses to add the SproutCore specific globals.
There are several snippets available to significantly reduce the amount of
typing you need to do. To use a snippet, start typing the keyword and select
the appropriate snippet to insert useful predefined code. You can then use
tab key to jump between the configurable aspects of the snippet to
modify it very quickly without using the mouse.
SCButtonView- An SC.ButtonView template.
SCLabelView- An SC.LabelView template.
SCListView- An SC.ListView template.
SCRecord- An SC.Record template with several attributes and a
SCState- An SC.State template with enterState and exitState.
SCScrollView- An SC.ScrollView template.
SCTextFieldView- An SC.TextFieldView template.
SCView- An SC.View template.
SCView (Class)- An SC.View as a Class template with render and update.
SCBinding- A oneWay binding.
childViews- Adds childViews property.
childViewLayout- Adds childViewLayout & childViewLayoutOptions properties.
for- A forward
for- A reverse
function (observes)- A .observes function.
function (property)- A .property function.
function (cacheable)- A .property.cacheable function.