Visual Studio style XML Documentation in XCode? [closed]

 ̄綄美尐妖づ 提交于 2019-12-07 19:39:12

问题


I've just wasted a better part of 30 mins searching for an answer to the following question:

Is there any way to quickly generate documentation in XCode for Methods similar to Visual Studio's "///" XML snippet?

I am aware of Doxygen, but that would still require manually documenting each Method, essentially I'm looking for a way to cut down the work as much as possible.

Help much appreciated.


回答1:


Currently there is no way to do this. Doxygen is the closest you'll get - it's what Apple uses. And since XCode 4 kinda forgot automation (applescripting is broke) it won't be coming as an addon any time soon.

Accessorizer is an external application that helps you through copy & paste code generation. Not nearly as seamless as VS, but better than writing everything by hand. You could customize it's templates to make documentation for your methods.

TextExpander is another tool for building text macros. Not as feature rich as Accessorizer, but usable in other applications as well.

Last and probably least, XCode Snippets can be customized, but not as much as most developers would like.



来源:https://stackoverflow.com/questions/4383718/visual-studio-style-xml-documentation-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!