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

Cool​Format

by akof1314 ST2/ST3

A Sublime Text plugin for Source Code Formatter

Labels format, tidy

Details

Installs

  • Total 19K
  • Win 12K
  • OS X 4K
  • Linux 3K
Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1
Windows 5 5 6 15 18 13 9 10 4 9 19 13 15 12 12 7 10 16 15 10 13 9 9 9 14 13 11 10 8 10 14 15 19 21 8 10 6 8 16 15 23 12 4 9 18 22
OS X 5 2 8 0 3 7 1 1 0 1 8 4 2 5 2 2 4 3 2 4 11 2 1 7 10 3 7 3 2 3 3 8 7 5 4 2 3 6 8 3 10 6 4 3 5 4
Linux 0 2 4 7 3 8 5 0 3 4 5 5 2 6 5 4 3 3 2 3 5 3 5 5 7 2 6 4 3 4 2 3 6 4 5 3 1 8 7 3 4 8 5 9 3 7

Readme

Source
raw.​githubusercontent.​com

Sublime-CoolFormat

Description

A Sublime Text plugin for Source Code Formatter. CoolFormat Source Code Formatter is a code formatter for C\C++\C#\CSS \HTML\Java\JavaScript\JSON\Objective-C\PHP\SQL\XML files.

Installation

With the Package Control plugin

The easiest way to install Sublime-CoolFormat is through Package Control.

Once you have Package Control installed, restart Sublime Text.

  1. Bring up the Command Palette (Ctrl+Shift+P on Windows and Linux. ++P on OS X).
  2. Type “Install” and select “Package Control: Install Package”.
  3. Select “CoolFormat” from list.

The advantage of using Package Control is that it will keep Sublime-CoolFormat up to date.

Manual Install

Without Git:

Download the latest source code, and extract it to the Packages directory.

With Git:

Type the following command in your Sublime Text 2 or Sublime Text 3 Packages directory:

git clone https://github.com/akof1314/Sublime-CoolFormat.git

The “Packages” directory is located at:

Sublime Text 2

  • Windows: %APPDATA%\Sublime Text 2\Packages
  • Linux: ~/.config/sublime-text-2/Packages/
  • OS X: ~/Library/Application Support/Sublime Text 2/Packages/

Sublime Text 3

  • Windows: %APPDATA%\Sublime Text 3\Packages
  • Linux: ~/.config/sublime-text-3/Packages/
  • OS X: ~/Library/Application Support/Sublime Text 3/Packages/

Usage

Key Bindings

The default key bindings for this plugin:

Windows, Linux, OSX:

  • Ctrl+Shift+Alt+Q: Quick Format.
  • Ctrl+Shift+Alt+S: Selected Format.

Command Palette

Open the command palette, it appears as CoolFormat: Quick Format and CoolFormat: Selected Format and CoolFormat: Formatter Settings.

Settings

Before starting, you may want to have a look at CoolFormatConfig.cfconfig.

Please visit http://akof1314.github.io/CoolFormat/doc/index.html for more information.