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
DISCONTINUED. Xcode plug-in which helps you write Javadoc style documents easier. -
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. -
CocoaPods Xcode Plugin
DISCONTINUED. Dependency management helper for your CocoaPods, right in Xcode. -
ClangFormat-Xcode
Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang -
RTImageAssets
A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x -
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
XCODE 8 NOT SUPPORTED // Plugin for Xcode 7 to make working with strings less "escaped" -
BBUDebuggerTuckAway
Xcode plugin for auto-hiding the debugger once you start typing in the source code editor. -
FastStub-Xcode
Xcode Plugin helps you find missing methods in your class header, protocols, and super class, also makes fast inserting. -
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. -
BBUFullIssueNavigator
DISCONTINUED. Xcode plugin for showing all issue content in the issue navigator. -
Reveal-In-GitHub
An Xcode plugin designed for seamless navigation to key GitHub functionalities within your current repository. With just a click, effortlessly access GitHub History, Blame, Pull Requests, Issues, and Notifications, all in a matter of seconds. -
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. -
CopyIssue
Makes Copy Xcode Issue Description Easily, Support Finding Answers in Google or StackOverflow Directly -
CleanHeaders-Xcode
A Xcode Source Editor Extension to sort your header imports and remove duplicates, similar to iSort.
CodeRabbit: AI Code Reviews for Developers
* 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.