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
  • 20 minutes ago
  • 12 years ago

Installs

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