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
  • 8 years ago
  • 59 minutes ago
  • 11 years ago

Installs

  • Total 724
  • Win 353
  • Mac 277
  • Linux 94
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7
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 1 0 0 0 0 0 0
Mac 0 0 0 0 0 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
Linux 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 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.