An open API service indexing awesome lists of open source software.

https://github.com/chrischute/xcode-multi-line-func

XCode extension to split a Swift function onto multiple lines
https://github.com/chrischute/xcode-multi-line-func

Last synced: 4 months ago
JSON representation

XCode extension to split a Swift function onto multiple lines

Awesome Lists containing this project

README

          

## Overview

This is a simple XCode extension to convert a one-line function call (or declaration) into a multi-line one. Useful for functions with many parameters.

![Convert to Multi-Line Function Xcode Extension - Sort Imports Demo](example_usage.gif)

## Installation

- Download latest *Convert to Multi-Line Function* package from the [Releases](https://github.com/chrischute/xcode-multi-line-func/releases).
- Copy *Convert to Multi-Line Function* to your *Applications* folder.
- Launch *Convert to Multi-Line Function* once. You can close it immediately afterwards.
- Go to System Preferences > Extensions > Xcode Source Editor > select Convert to Multi-Line Function

## Setting Hotkey in Xcode

- Open Xcode
- Go to Xcode > Preferences > Key Bindings
- Type *'convert to multi-line function'* in search field
- Assign + + N to *Convert to Multi-Line Function* command