ImpactJS
A package for doing ImpactJS development in Sublime Text 2.
Details
Installs
- Total 740
- Win 361
- Mac 283
- Linux 96
Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | 1 | 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.