Logo CodeFormatter for Xcode

User Guide

Installation & Setup

  1. Download and Open the App:
    Download the app from the releases page and launch it. The main app is required to contain the extension.
  2. Enable the Extension:
    Go to System Settings > Privacy & Security > Extensions > Xcode Source Editor.
    Check the box next to CodeFormatter.
  3. Restart Xcode:
    If Xcode was running, restart it to load the new extension.

Usage

Once enabled, you can access the formatter directly within Xcode.

  1. Open a source file (Swift, C, C++, etc.).
  2. Go to Editor > CodeFormatter in the menu bar.
  3. Select Format File to format the entire document.
  4. Select Format Selection to format only the selected lines.
Xcode Editor Menu

Keyboard Shortcuts

To speed up your workflow, assign a keyboard shortcut:

  1. Open Xcode Settings (Cmd + ,).
  2. Go to the Key Bindings tab.
  3. Filter for “CodeFormatter”.
  4. Double-click the key column next to the command you want (e.g., Format File).
  5. Press your desired key combination (e.g., Cmd + Shift + F).
Xcode Keyboard Shortcuts Settings