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 22K
  • Win 13K
  • OS X 5K
  • Linux 4K
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 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11
Windows 0 9 3 5 7 7 8 12 6 5 4 12 8 11 6 12 2 6 10 13 14 10 7 4 8 6 10 11 10 10 7 5 7 9 6 10 11 2 5 13 8 4 9 10 6 5
OS X 0 3 0 2 3 3 4 7 3 0 1 4 2 2 4 7 0 1 6 2 3 1 1 3 2 2 6 2 7 0 2 0 4 3 5 6 2 3 2 4 3 6 3 1 0 2
Linux 0 4 0 1 2 5 11 6 4 1 2 2 4 5 1 6 2 2 3 6 7 6 6 0 1 2 4 4 9 3 1 0 4 5 2 2 1 3 6 2 5 5 3 3 3 3

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.