ClangFormat-Xcode alternatives and similar libraries
Based on the "Plugins" category.
Alternatively, view ClangFormat-Xcode alternatives based on common mentions on social networks and blogs.
-
FuzzyAutocompletePlugin
A Xcode 5+ plugin that adds more flexible autocompletion rather than just prefix-matching. -
XAlign
An amazing Xcode plugin to align regular code. It can align anything by using custom alignment patterns. -
BBUncrustifyPlugin-Xcode
Xcode plugin to format source code using ClangFormat or Uncrustify. -
VWInstantRun
An Xcode plugin let you build & run your selected lines of code in Xcode without running the whole project, you'll have the output instantly in your Xcode console. -
HOStringSense-for-Xcode
Plugin for Xcode to make perfect editing regular expressions, multi line texts, inline HTML and many more use cases. Also provides quick feedback on string length. -
SCXcodeSwitchExpander
SCXcodeSwitchExpander is a small Xcode plugin that expands switch statements by inserting missing cases. -
BBUDebuggerTuckAway
Xcode plugin for auto-hiding the debugger once you start typing in the source code editor. -
SwiftInitializerGenerator
Xcode 8 Source Code Extension to Generate Swift Initializers. -
Gradle Xcode plugin
Build iOS or Mac OS X Projects using Gradle. -
FastStub-Xcode
Xcode Plugin helps you find missing methods in your class header, protocols, and super class, also makes fast inserting. -
AdjustFontSize
Instant font size adjustment with โ + / โ -. -
Show in Github
Xcode plugin to open the GitHub page of the commit of the currently selected line in the editor window. -
KPRunEverywhereXcodePlugin
An Xcode plugin to build and run an app across multiple iOS devices with one click. -
BBUFullIssueNavigator
Xcode plugin for showing all issue content in the issue navigator. -
Reveal-In-GitHub
Xcode plugin to let you jump to GitHub History, Blame, PRs, Issues, Notifications of any GitHub repo with one shortcut. -
You-Can-Do-It
Is learning a new language getting you down? Worry not, this Xcode plugin will keep you motivated. -
CleanClosureXcode
An Xcode Source Editor extension to clean the closure syntax. -
XcodeEquatableGenerator
Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection. -
PreciseCoverage
Make Xcode code coverage more informative -
CleanHeaders-Xcode
A simple iSort like header sorting and duplicate removal plugin for Xcode, makes your headers look more organized. -
SYXcodeIconVersion
This Xcode plugin shows Xcode app version in the Dock and App Switcher icon
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of ClangFormat-Xcode or a related project?
README
ClangFormat-Xcode
An Xcode plug-in to format your code using Clang's format tools, by @travisjeffery.
With clang-format you can use Clang to format your code to styles such as LLVM, Google, Chromium, Mozilla, WebKit, or your own configuration.
Installation:
:warning: From XCode 8+, unsigning is required in order to use community-made plugins. Check https://github.com/inket/update_xcode_plugins for more information.
Install via Alcatraz.
OR
Clone this repo, build and run ClangFormat, restart Xcode.
Removing ClangFormat
To remove ClangFormat, run the following in your terminal:
rm -r "~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ClangFormat.xcplugin"
Or just find the same file and move it to the trash. You'll need to restart Xcode after deleting the plugin.
Usage:
Format on save
I.e., you press command-s
and the file is formatted and wrote to disk.
In the menu, open Edit > Clang Format > Click Format on save (a checkmark appears in this menu item indicicating that the feature is active.)
Assign keyboard shortcuts
You can assign your own keyboard shortcuts like so:
- Open the System Preferences > Keyboard > Shortcuts > App Shortcuts > Click +
- Set the application to be Xcode
- Set the menu title to an action title, e.g. "Format File in Focus"
- Set your shortcut
In this example, we'll format the active file when control-i
is pressed.
Using your own style configuration
By using Clang Format > File in the plug-in menu, Clang will look for the nearest .clang-format
file from the input file. Most likely, you'll have a .clang-format file at the root of your project.
Here are the options for .clang-format and how they're configured. Here's a cool interactive website to help you make your .clang-format file.
If one of the built-in styles is close to what you want, you can bootstrap your own configuration with:
./bin/clang-format -style=llvm -dump-config > .clang-format
For example, this .clang-format is similar to the Linux Kernel style:
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
And this is similar to Visual Studio's style:
UseTab: Never
IndentWidth: 4
BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0