---
title: "#278: Saving Time With Source Editor Extensions 🤖🛠"
url: https://littlebitesofcocoa.com/278-saving-time-with-source-editor-extensions
author: Jake Marsh
date: 2016-10-21
published: 2016-10-21
topics: ["Tools"]
description: "We touched briefly on this topic back in Bite #273 with Generating Initializers. Today we'll take a look at a few additional Xcode Source Editor Extensions..."
---

# #278: Saving Time With Source Editor Extensions 🤖🛠

By Jake Marsh, October 21, 2016. HTML: https://littlebitesofcocoa.com/278-saving-time-with-source-editor-extensions

We touched briefly on this topic back in [Bite #273](https://littlebitesofcocoa.com/273) with [Generating Initializers](https://littlebitesofcocoa.com/273). Today we'll take a look at a few additional [Xcode Source Editor Extensions](https://littlebitesofcocoa.com/239) ([Bite #239](https://littlebitesofcocoa.com/239)) that can help us save time while working. Let's begin.

First up, **Equatables**. We can use [XcodeEquatableGenerator](https://github.com/sergdort/XcodeEquatableGenerator) from [Serg Dort](https://github.com/sergdort) to quickly generate the long list of **property comparisons** often required when adopting the `Equatable` protocol in our **Swift Structs** or **Classes**:

<img src="https://media.littlebitesofcocoa.com/278-1.gif" style="max-width: 600px; border-radius: 4px;" />

Whew! That used to take ages! [Full installation instructions are here](https://github.com/sergdort/XcodeEquatableGenerator).

Next, **Localization**. We've all been on a project with no localization. Adding that first round of `NSLocalizedString()` calls can be a pain. No longer! Now we can use [Localizer](https://github.com/esttorhe/Localizer) from [Esteban Torres](https://github.com/esttorhe).

With it, we can select a line of code like this:

``` swift
let _ = "Mission Control Panel"
```

Then, when we run [Localizer](https://github.com/esttorhe/Localizer)'s command, this line becomes:

``` swift
let _ = NSLocalizedString("Mission Control Panel", comment: "Mission Control Panel")
```

Neat! [Learn more about Localizer here](https://github.com/esttorhe/Localizer).

Last but <i>definitely</i> not least, is [XcodeWay](https://github.com/onmyway133/XcodeWay) by [Khoa Pham](https://github.com/onmyway133). This one is a bit different in that it doesn't modify or generate any code, but rather lets us quickly open a <i>bunch</i> of commonly used directories, by adding them to our **Editor Menu**:

<img src="https://media.littlebitesofcocoa.com/278-2.png" style="max-width: 538px;" />

Nice! No more hunting around in **Finder** or **Terminal** for these.

Know of another neat _Source Editor Extension_? [Send it along!](mailto:hello@littlebitesofcocoa.com?subject=Neat%20Source%20Editor%20Extension)
