Line Breaker is an Xcode source editor extension that helps format your code by breaking up long lines into multiple lines, and doing so with correct indentation. It can be used to break up a variety of different types of long lines of code that can plague readability in projects such as:
- Function definitions
if let
statmentsguard let
statements- Chained function calls
- Array declarations
- Dictionary declarations
Check out the screen recording below to see how easy it is to use Line Breaker.
You can install Line Breaker from the Mac App Store, or clone this project and run it all locally.
If you run into any problems, please submit an issue. Pull requests are also welcome! By contributing to Line Breaker you agree that your contributions will be licensed under its MIT license.
Line Breaker was created by Matthew Pierce (@PierceMatthew)
Line Breaker is available under the MIT license. See the LICENSE file for more info.