Does a keyboard shortcut exist or is there a way to create a custom shortcut for allocating and initializing a class? Say we have:
MyCustomClass customClass =
At this point there should be an autocomplete option to:
MyCustomClass customClass = [[MyCustomClass alloc] init];
You can use a snippet, but you will need to type in your custom class anyways. A faster way for init is to use [MyCustomClass new]
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.