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
  • 2 hours ago
  • 11 years ago

Installs

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