Emacs,Objective-C和自动完成 [英] Emacs, Objective-C, and autocomplete
问题描述
但是,对于Objective-C,我发现自己缺少Xcode的自动完成功能,因为我已经记住很长的函数名,如
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing: (NSBackingStoreType)bufferingType延迟:(BOOL)延迟创建屏幕:(NSScreen *)屏幕;
有没有办法在emacs上获取Xcode风格的自动完成?
另外,有没有什么好的包可以帮助Cocoa或Objective-C,一般来说我应该有?
我写了一个脚本将Cocos SDK中的函数定义导出为yasnippet片段: http://github.com/ zegal / yasobjc
随着ETAGS的帮助和自动完成,完成体验非常接近XCode。你可以尝试一下。
I recently switched to emacs for my code editing, and it mostly works well.
However, for Objective-C I find myself missing Xcode's autocomplete feature as I have trouble remembering the long function names such as
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation screen:(NSScreen *)screen;
Is there a way to get Xcode-style autocompletion on emacs?
Also, are there any good packages to help with Cocoa or Objective-C in general that I should have?
I wrote a script to export function definitions in Cocoa SDK as yasnippet snippets: http://github.com/zegal/yasobjc
With the help with ETAGS and auto-complete, the completion experience is very close to XCode. You can have a try.
这篇关于Emacs,Objective-C和自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!