ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Impact​JS

by drhayes ALL

A package for doing ImpactJS development in Sublime Text 2.

Details

  • 2015.12.08.20.18.52
  • github.​com
  • github.​com
  • 9 years ago
  • 23 minutes ago
  • 12 years ago

Installs

  • Total 731
  • Win 355
  • Mac 281
  • Linux 95
Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9
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 2 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.