Code formatting plugin for Sublime Text editor for reformatting C/C++/Objective C/Javascript and WebIdl code.
Command Palette:
ClangFormat: Format Selection
- formats only current line or selection (if made)ClangFormat: Format Document
- formats whole document
Keybinding:
By default, keybinding is not enabled.
Open Preferences
=> ClangFormat
=> Key Bindings
to enable default CTRL + SHIFT + Q key binding by copying it your user keybindings and uncommenting.