Is it possible to automatically declare a method into header file(.h) in appCode?
I have using appCode trial version.
I want to automatically be declared a method into heder file by appCode's some feature, when I write a method in @implementation file.
ex) I write a method in @implementation file.
@implementation myClass
- (void)testMethod{
}
@end
automatically declare a method into @interface file.
@interface myClass
- (void)testMethod; <== automatically insert.
@end
How to automatically declare method into header file by appcode's feature?
Please sign in to leave a comment.
Yes, simply press Alt+Enter in the method:


It works both, from interface and from implementation.
There are lots of other places, where you can use such 'Intentions' - you can spot them by the little yellow bulb, as on the screenshot.
Also try pressing 'Alt+Enter' in various ocasions, to see available options:
Anton, Thanks for your answer.