下载地址:https://github.com/onevcat/VVDocumenter-Xcode
PS:Xcode 8.0 默认支持了,但是是关闭状态,需要在终端输入如下命令开启,然后重启 Xcode 就可以了,快捷键为「option+command+/」:
1 sudo /usr/libexec/xpccachectl
How to install and use?
The best way of installing is by Alcatraz. Install Alcatraz followed by the instruction, restart your Xcode and press ⇧⌘9
. You can find VVDocumenter-Xcode
in the list and click the icon on left to install.
If you do not like the Alcatraz way, you can also clone the repo. Then build the VVDocumenter-Xcode
target in the Xcode project and the plug-in will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
. Relaunch Xcode and type in ///
above any code you want to write a document to.
If you want to use other text beside of ///
to trigger the document insertion, you can find a setting panel by clicking VVDocument
in the Window menu of Xcode. You can also find some other useful options there, including setting using spaces instead of tab in the panel or changing the format of generated documentation.
下载开源工程在Xcode重新编译运行会自动安装此插件,重启Xcode就可以使用了
插件设置:
使用方式: