Skip to content

lm2s/SwiftBreak

Repository files navigation

SwiftBreak is an Xcode Extension that transforms your single line function parameters into multiline.

myFunc(a: Int, b: Int)
myFunc(
    a: Int,
    b: Int 
)

Installation

  • Download from GitHub Releases

Usage

1) Open SwiftBreak to activate

This is required at least once. You can also set some preferences here.

2) Enable the extension

Open System Preferences > Extensions > Xcode Source Editor and make sure SwiftBreak is selected.

3) How to use SwiftBreak

Use the Swift Break > Split Parameters command in the Xcode's Editor menu.

4) Configure a shortcut

In Xcode Preferences > Key Bindings.


❤️