How to implement this - generate setter automatically?

痴心易碎 提交于 2019-12-25 08:57:44

问题


In Standford CS 193P 2013-2014 Fall lecture 7, the instructor shows the following thing. But I can't reproduce that mysef in Xcode 6. Anybody knows that? (.gif can also be seen here)


回答1:


It's code snippet.

You can create your own code snippet in XCode.

  1. Type the template code in XCode
  2. Copy it and drag it to the comment section in the Utility panel
  3. Give a title and completion shortcut
  4. Whenever you type the shortcut, XCode will show the auto-completion option



来源:https://stackoverflow.com/questions/28779480/how-to-implement-this-generate-setter-automatically

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