EasyProperty is inspired by ATProperty.
New features:
@sonly trigger in@interfaceblock.- Automatic positioning the cursor to the
type - undo/redo supports.
This is a convenient and fast approach to create property. You do not need to type @property and nonatomic when you declare a property.
You just needs to type @s like this.
You can clone the repo and build the target. And the plug-in will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. Relaunch Xcode, and you can use this to create property.
This plug-in is extremely easy to use.
| typein | result |
|---|---|
| @s | @property (nonatomic, strong) type *value; |
| @w | @property (nonatomic, weak) type *value; |
| @d | @property (nonatomic, weak) id<type> value; |
| @c | @property (nonatomic, copy) type *value; |
| @a | @property (nonatomic, assign) type value; |
| typein | result |
|---|---|
| @rs | @property (nonatomic, strong, readonly) |
| @rw | @property (nonatomic, weak, readonly) |
| @rc | @property (nonatomic, copy, readonly) |
| @ra | @property (nonatomic, assign, readonly) |
| typein | result |
|---|---|
| @xs | @property (nonatomic, strong, readwrite) |
| @xw | @property (nonatomic, weak, readwrite) |
| @xc | @property (nonatomic, copy, readwrite) |
| @xa | @property (nonatomic, assign, readwrite) |
| typein | result |
|---|---|
| @iw | @property IBOutlet (nonatomic, weak) |
You can enable/disable the EasyProperty plugin in menu:
Edit => Enable EasyProperty
Feel free to open an issue or pull request, if you need help or there is a bug.
- Powered by langyanduan
EasyProperty is available under the MIT license. See the LICENSE file for more info.

