Recently I started picking up Swift 2 with some practice projects and once again started using Xcode. Many things have changed since my last encounters with Xcode and Objective-C in the iOS 4.x days, but I am really enjoying Swift so far. CocoaPods is still around and remains the best dependency manager, although Apple has recently released the Swift Package Manager which still seems to be in alpha stages, until the release of Swift 3.
Xcode remains largely similar to previous versions, although there is now an excellent plugin manager called Alcatraz. I have installed a few plugins and wanted to share a few very useful ones. All of these are available on Alcatraz, so install it via the link above.
- Tomorrow Night
A very popular dark color scheme available for many platforms and tools. Looks great with Swift!
If you have ever used SublimeText, then you’re familiar with its iconic code minimap feature. This brings that functionality to Xcode.
A very subtle but useful tweak. Highlights the current selected line with a custom background color. Sometimes the cursor is hard to see and you lose sight of which line you’re actually on when jumping around code.
A collection of text manipulation commands with customizable keyboard shortcuts. As someone who is used to using PHPStorm, I really missed the “Duplicate Line” shortcut which I assigned to ⌘+D.
Xcode already hogs so much screen real estate with all its frames, and this automatically hides the debugger once you start typing into the source code window.
Normally code autocompletion requires contiguous characters to be input, but this plugin will let autocomplete use the same algorithm as the “Open Quickly” option for fuzzy search.
Neat freaks and readability snobs will love this one. Allows you to automatically align your lines for example based on the ‘=’ sign.
That’s all for now. I’ll try to keep this post updated as I run into more plugins. Please also share your favorites in the comments!