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

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.