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

Cool​Format

by edokan ALL

A Sublime Text plugin for Source Code Formatter

Labels formatting, tidy

Details

  • 1.1.1
  • github.​com
  • 2 weeks ago
  • 1 hour ago
  • 11 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

Sublime-CoolFormat

IMPORTANT

This is a clone of the original CoolFormat plugin repository by akof1314. Since the original repository has not been maintained, I cloned the repository and added support for OSX ARM64 support. I may try to fix other issues, and implement a few new ones.

Using old plugin name since I was advised to do so, for details please see https://github.com/wbond/package_control_channel/pull/9182.

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/edokan/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/

Sublime Text 4

  • Windows: %APPDATA%\Sublime Text 4\Packages
  • Linux: ~/.config/sublime-text-4/Packages/
  • OS X: ~/Library/Application Support/Sublime Text 4/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.