قالب وردپرس درنا توس
Home / IOS Development / # 284: Multiple Xcode Source Editor Extensions 🤖🛠 – Little Bites of Cocoa

# 284: Multiple Xcode Source Editor Extensions 🤖🛠 – Little Bites of Cocoa



Subjects

Topics

Today we will dive back to the world with Xcode Source Editor Extensions (Bite # 239). These extensions can not only help us save time and effort, they are also a great way to customize Xcode to our exact needs. Let's go diving!

First up, Cleaner Closures . We can use CleanClosureXcode from Patrick Balestra to clean up all unnecessary ( s and ) from our Swift closure Definitions:

Beautiful. No more manually arrow keys around to get rid of them.

Next, let's look at a common feature of many IDEs and text editors: the ability to "jump" the cursor several lines up or down. Xcode can not really do that … so far. Thanks to Jump, we get some new menu items in the menu Editor to move the cursor up or down by 2 or 5 lines. Neat. Pro Tip: We can use the Key Bindings of Xcode's Preferences window to customize the keyboard shortcuts for each of these movements commands (or other commands).

Finally, let's check out QuickAdd from Sidney de Koning.

This extension allows us to select some text, then insert a new function definition in our code, complete with documentation comment, and placeholders we can press tab to jump between.

This allows us to use a workflow of:

1.) Call a function that is not yet available when you type code as a sort of "placeholder" .
2.) When we finish that part of the work, select the name part of the function and press a keyboard shortcut to "generate" on ].
Source link