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.
-
VVDocumenter-Xcode
Xcode plug-in which helps you write Javadoc style documents easier. -
KSImageNamed-Xcode
Xcode plug-in that provides autocomplete for imageNamed: calls -
FuzzyAutocompletePlugin
A Xcode 5+ plugin that adds more flexible autocompletion rather than just prefix-matching. -
ColorSense-for-Xcode
Plugin for Xcode to make working with colors more visual -
XAlign
An amazing Xcode Source Editor extension to align regular code. It can align Xnything in any way you want. -
CocoaPods Xcode Plugin
Dependency management helper for your CocoaPods, right in Xcode. -
RTImageAssets
A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x -
Dash
Plugin for Xcode to integrate the Dash documentation viewer app -
XToDo
Xcode plugin to collect and list the `TODO`,`FIXME`,`???`,`!!!!` -
BBUncrustifyPlugin-Xcode
Xcode plugin to format source code using ClangFormat or Uncrustify -
update_xcode_plugins
No more messing with plugin UUIDs; Plugins on Xcode 8! -
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. -
Refactorator
Xcode Plugin that Refactors Swift & Objective-C -
JSPatchX
A XCode plugin that provides autocompletion for JSPatch -
HOStringSense-for-Xcode
XCODE 8 NOT SUPPORTED // Plugin for Xcode 7 to make working with strings less "escaped" -
Import
Xcode extension for adding imports from anywhere in the code โ๏ธ -
SCXcodeSwitchExpander
Xcode plugin that enables switch cases autocompletion -
CATweaker
A helper tool and an Xcode plugin for creating beautiful CAMediaTimingFunction curve -
BBUDebuggerTuckAway
Xcode plugin for auto-hiding the debugger once you start typing in the source code editor. -
SwiftInitializerGenerator
Xcode Source Code Extension to Generate Swift Initializers -
Gradle Xcode plugin
gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS -
XcodeWay
:sailboat: An Xcode Source Editor Extension that helps navigating to many places easier -
FastStub-Xcode
Xcode Plugin helps you find missing methods in your class header, protocols, and super class, also makes fast inserting. -
Backlight-for-XCode
Highlights the current editing line in Xcode -
AdjustFontSize
Instant font size adjustment with control โ / control + -
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 7 plugin to build and run an app across multiple iOS devices with one click. -
RevealPlugin
Plugin for Xcode to integrate the Reveal App to your project automatic. -
MLAutoReplace
Xcode plugin which help you write code faster. -
Reveal-In-GitHub
Xcode plugin to let you jump to GitHub History, Blame, PRs, Issues, Notifications of any GitHub repo with one shortcut. -
BBUFullIssueNavigator
Xcode plugin for showing all issue content in the issue navigator. -
You-Can-Do-It
Is learning a new language getting you down? Worry not, this Xcode plugin will keep you motivated. -
XcodeEquatableGenerator
Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection. -
CleanClosureXcode
An Xcode Source Editor extension to clean the closure syntax. -
CopyIssue
Makes Copy Xcode Issue Description Easily, Support Finding Answers in Google or StackOverflow Directly -
Luft
The Xcode Plugin that helps you write lighter view controllers -
PreciseCoverage
Make Xcode code coverage more informative -
CleanHeaders-Xcode
A Xcode Source Editor Extension to sort your header imports and remove duplicates, similar to iSort. -
SYXcodeIconVersion
This Xcode plugin shows Xcode app version in the Dock and App Switcher icon -
AutoHighlightSymbol
A Xcode plugin to add highlight to the instances of selected symbol. -
XCSnippetr
An Xcode Plugin to upload code snippets directly into Slack and Gist
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
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