create custom code completion macro in xcode 6.1

我怕爱的太早我们不能终老 提交于 2019-12-24 12:01:01

问题


How do i create a custom code completion macro in xcode 6.1

answer to How to create custom "Text Macros" in Xcode? does not seems to work as "Contents/PlugIns/TextMacros.xctxtmacro/Contents/Resources" does not exist anymore.


回答1:


I have just been searching for this too, and I found the solution.

  • Select the snippet that you want to make the macro with.
  • Drag the selected text to the Snippets Draw.
  • Inside the edit box, add the 'short-cut' that you want to use in the "Completion Shortcut" edit field.
  • Set the required "Completion Scopes", if required.

    Viola.


来源:https://stackoverflow.com/questions/28268576/create-custom-code-completion-macro-in-xcode-6-1

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