ImpactJS
A package for doing ImpactJS development in Sublime Text 2.
Details
Installs
- Total 735
- Win 358
- Mac 282
- Linux 95
Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
ImpactJS for Sublime Text 2
A collection of snippets and shortcuts for doing ImpactJS development in Sublime Text 2.
Issues and pull requests welcome! I don't use Sublime these days so I'm less aware of the little daily pains that using this package can cause. Please let me know if there's something missing that you want and we'll work to get it in here.
Install
Please use Package Control to install the ImpactJS plugin for Sublime Text 2. Everything else would just be terrible.
Usage
This package is careful to not steal your JS syntax away from you. To use this package in Sublime you must switch the syntax of your current file from “JavaScript” to “ImpactJS”.
By default, you can press CTRL - SHIFT - P to pull up the syntax chooser.
Snippets
I really love TAB completion snippets. Once your syntax is switched (see above), you can type the shortcuts below, hit TAB, and the snippet should expand in place.
See the Sublime documentation for “Snippets” for more info.
igm
Define an Impact module. By default, the snippet defines the module with a
'use strict';
expression to force JS into strict mode. Trust me,
you want this. But it does mean that your definitions probably have to be
declared with a window
in front of them. For example:
window.EntityPlayer = ig.Entity.extend({});
ige
Define an Impact entity. As above, the module will be in strict mode.
Completions
This package knows about certain properties in Impact and will help you complete them by pressing CTRL - SPACE.
See the Sublime docs about “Completions” for more info.
Entity
All the Entity properties and methods.
Keys
All the mouse and keyboard names.