An Xcode source editor extension to save Xcoders' time.
I have been tired of typing words like @property (nonatomic, strong)
when declaring properties with Objective-C. With QuickXcoder extension installed, I don't have to do that any more.
Note: This is really a small trick and only efficient with proper key bindings.
Before this extension, I added an instance method declaration in following steps:
- Press the
-
key that is to the right of0
key. - Hold
Shift
key and press the(
key that is to the left of0
key. - Relocate my hands on keyboard, so that I can go on to type the return type of the method.
- ...
By setting a key binding with Command
key and the -
(to the right of 0
key) for creating an instance method declaration, I can type the return type instantly.
The same applies to adding a static method declaration.
- Archive and export a package.
- Run the exported
QuickXcoder
. (Ignore the crash.) - Enable the extension in
System Preferences -> Extensions -> Xcode Source Editor
. - Launch Xcode, the extension will be found in
Editor
menu. - If needed, set key bindings in
Xcode -> Preferences -> Key Bindings
by searchingPlace Holder
.
Tiny feature saves us time.