Skip to content

XCode extension to split a Swift function onto multiple lines

Notifications You must be signed in to change notification settings

chrischute/xcode-multi-line-func

Repository files navigation

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

Installation

  • Download latest Convert to Multi-Line Function package from the 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

About

XCode extension to split a Swift function onto multiple lines

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages