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