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

Cool​Format

by akof1314 ST2/ST3 Trending

A Sublime Text plugin for Source Code Formatter

Labels format, tidy

Details

Installs

  • Total 15K
  • Win 9K
  • OS X 3K
  • Linux 2K
Apr 23 Apr 22 Apr 21 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
Windows 3 5 22 11 8 10 15 12 3 13 11 13 16 25 10 6 6 9 9 16 10 7 12 5 6 6 14 15 10 9 4 15 13 13 11 11 7 5 7 11 12 12 9 5 11 10
OS X 1 3 2 2 3 5 5 4 2 0 1 6 3 4 2 0 1 2 6 4 3 3 1 3 6 2 4 2 3 0 3 4 3 9 3 3 1 1 3 3 2 3 4 0 1 6
Linux 0 3 4 5 4 2 3 4 0 2 4 1 6 4 3 4 4 2 3 2 4 5 4 3 2 2 4 3 3 3 0 4 1 1 3 5 0 1 2 0 6 3 1 0 2 2

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.