BBUncrustifyPlugin-Xcode alternatives and similar libraries
Based on the "Plugins" category.
Alternatively, view BBUncrustifyPlugin-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 -
ColorSense-for-Xcode
Plugin for Xcode to make working with colors more visual -
FuzzyAutocompletePlugin
A Xcode 5+ plugin that adds more flexible autocompletion rather than just prefix-matching. -
XAlign
An amazing Xcode Source Editor extension to align regular code. It can align Xnything in any way you want. -
ClangFormat-Xcode
Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang -
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`,`???`,`!!!!` -
xTextHandler
Xcode 8 Source Editor Extension Toolset -
Swimat
An Xcode formatter plug-in to format your swift code. -
update_xcode_plugins
No more messing with plugin UUIDs; Plugins on Xcode 8! -
SCXcodeMiniMap
Sublime Text like Minimap for Xcode -
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 -
Import
Xcode extension for adding imports from anywhere in the code ☝️ -
SCXcodeSwitchExpander
Xcode plugin that enables switch cases autocompletion -
HOStringSense-for-Xcode
XCODE 8 NOT SUPPORTED // Plugin for Xcode 7 to make working with strings less "escaped" -
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 -
FastStub-Xcode
Xcode Plugin helps you find missing methods in your class header, protocols, and super class, also makes fast inserting. -
XcodeWay
:sailboat: An Xcode Source Editor Extension that helps navigating to many places easier -
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. -
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. -
CopyIssue
Makes Copy Xcode Issue Description Easily, Support Finding Answers in Google or StackOverflow Directly -
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. -
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 BBUncrustifyPlugin-Xcode or a related project?
README
BBUncrustifyPlugin-Xcode
Xcode plugin to format code using Uncrustify or ClangFormat.
Requirements
Xcode 6.0+ on OS X 10.10+.
PS: This fork works with Xcode 3.
Installation
Compiled Version
- The easiest way to install the plugin is to download the lastest release.
- Unzip and copy
UncrustifyPlugin.xcplugin
to~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
. - Relaunch Xcode after the copy.
Script Version
Run on Terminal:
curl -SL https://raw.githubusercontent.com/benoitsan/BBUncrustifyPlugin-Xcode/master/install.sh | sh
Build from Source
Build the Xcode project. The plug-in will automatically be installed in
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
.Relaunch Xcode.
To uninstall, just remove the plugin from ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
and restart Xcode.
How does it work?
All the commands are in the menu Edit > Format Code
.
Use the menu
Format Selected Files
to format the selected items in the project navigator.Use the menu
Format Active File
to format the source file actually opened in the editor.Use the menu
Format Selected Lines
to format the selected source code (multiple selection is supported). The selection is automatically extended in full lines. If the selection is empty, it uses the line under the cursor.Use the menu
Edit Configuration
to edit the formatter configuration in an external editor.Use the menu
BBUncrustifyPlugin Preferences
to change the plugin preferences.
Tips
When the code is reformated, the modifications are recorded in the undo. So undo reverts the modifications.
The Preferences window contains detailed informations to customize the formatter settings.
You can create keyboard shortcuts for the menu items in the Keyboard Preferences of OS X System Preferences.
Use the menu Edit > Format Code > View Log
to identify issues when formatting.
The plugin includes binaries for ClangFormat and Uncrustify. To use your own version, install the binary to: /usr/local/bin/clang-format
or /usr/bin/clang-format
for ClangFormat, /usr/local/bin/uncrustify
or /usr/bin/uncrustify
for Uncrustify.
When formatting a code selection, keep in mind that formatting selected lines can fail depending of the selected scope.
Uncrustify assumes the first selected line is indented correctly.
ClangFormat takes in account the scope around the selection.
Style configuration
To create the initial configuration file, you can use the button "Create Configuration File" in the preferences window.
The configuration file must be located in the current directory or any parent directories of the source file. The search is started from the current directory. The plugin looks for the following file name patterns, in the order priority shown:
- For ClangFormat:
1. `_clang-format`
2. `.clang-format`
- For Uncrustify:
uncrustify.cfg
_uncrustify.cfg
.uncrustify.cfg
.uncrustifyconfig
- In addition: your Home Folder and
~/.uncrustify/uncrustify.cfg
So lets say you have a project with subproject1 (team1) and subproject2 (team2), you can use a structure like that:
root project folder
| subproject1
| config_file -> team1
| subproject2
| config_file -> team2
ClangFormat: Predefined style or Custom style file
When using ClangFormat, you can use a predefined non editable style or a custom file. The plugin will use the style defined in the preferences window in the "Clang Style" section: LLVM, Google, Chromium, Mozilla, WebKit, or, Custom File.
Post Formatting options
In the plugin preferences, you can activate some post formatting operations:
Perform Xcode syntax-aware indenting
When enabled, the plugin re-indents the code using Xcode. By default, this feature is not selected because it overwrites the indentation performed by the formatter.
Indent whitespace-only lines to code level
Both ClangFormat and Uncrustify always trim whitespace-only lines. When enabled, the plugin re-indents empty lines to the code level. This option is disabled if "Including Whitespace-only lines" is enabled in Xcode preferences (Xcode Preferences > Text Editing Tab > Editing Panel > While Editing).
Some Objective-C Style Guides
Using Uncrustify:
Some Style Guides:
Creator
Benoît Bourdon (@benoitsan). Thanks to the Contributors!
Additional contributors actually not listed here: Dominik Pich.
License
BBUncrustifyPlugin is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the BBUncrustifyPlugin-Xcode README section above
are relevant to that project's source code only.