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

Coffee Formatter

by derekchiang ST2

A sublime plugin for formatting CoffeeScript

Details

  • 2013.10.19.02.31.47
  • github.​com
  • github.​com
  • 11 years ago
  • 53 minutes ago
  • 11 years ago

Installs

  • Total 13K
  • Win 3K
  • Mac 7K
  • Linux 2K
Oct 24 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
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 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

Sublime Coffee Formatter

This is a Sublime Text 2 plugin for formatting CoffeeScript. It's based upon this repo.

This project borrows heavily from JsFormat.

Usage

To use this package, the command node must be available. See here for Node installation details.

Assuming you are editing a CoffeeScript file:

Shortcut: ctrl + alt + f

Context Menu: right click -> Select Format CoffeeScript

Command Palette: ctrl + shift + p -> Select Format: CoffeeScript

Installation

Sublime Package Control allows you to easily install or remove Coffee Formatter(and many other ST2 packages) from within the editor.

  1. Install Sublime Package Control (if you haven't done so already) from http://wbond.net/sublime_packages/package_control . Be sure to restart ST2 to complete the installation.

  2. Bring up the command palette (default ctrl+shift+p or cmd+shift+p) and start typing Package Control: Install Package then press return or click on that option to activate it. You will be presented with a new Quick Panel with the list of available packages. Type Coffee Formatter and press return or on its entry to install Coffee Formatter. If there is no entry for Coffee Formatter, you most likely already have it installed.

License

WTFPL.