Sublime-CoolFormat (Sublime格式化代码插件)

转自:https://packagecontrol.io/packages/CoolFormat

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.

 

others:

https://stackoverflow.com/questions/43810855/sublimelinter-error-trying-to-parse-file-expected-value-in-packages-user-defau

https://stackoverflow.com/questions/46230437/sublime-error-trying-to-parse-settings-expected-value-in-packages-user-preferen

https://stackoverflow.com/questions/43810855/sublimelinter-error-trying-to-parse-file-expected-value-in-packages-user-defau

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值