Skip to content

MrPans/CodeGenerator

Repository files navigation

CodeGenerator

A Xcode plugin for generate Objectice-C code.

Preview

CodeGenerator Will add getter & setter in appropriate position even if there are several classes in one file

Goal

  • Lazy Getter.
  • Setter.
  • Override Methods (waiting for more extension api)

Install on Xcode 8

  1. download CodeGenerator.zip, and unarchive it.
  2. copy CodeGenerator.app to /Applications folder.
  3. Run it then close it.

Usage

1. Enable Code Generator

Check System Preferences -> Extensions -> Xocde Source Editor -> Code Generator

2. Setting Shortcut in Xocde

Preferences -> Key bindings -> Filter: generate code

Set Lazy Getter command shortcut to + + G

Set Setter command shortcut to + + S

LICENSE

MIT