Can't drag (to make code snippet) in Xcode

前端 未结 5 1187
囚心锁ツ
囚心锁ツ 2020-12-24 04:37

When I follow all the instructions (including apple\'s video) to drag text to create a code snippet in xcode, I get a different system behavior: all I see is the selection i

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 05:02

    Yes, I ran into the same problem, and Apple-ism seems to be a good term for this issue :)

    It works this way:

    • Select (or highlight) the code your want to turn into a snippet
    • EDIT: Click and hold (do not drag!) on any part of the selected text for a short moment (like 2 seconds, sometimes 8 seconds)
    • EDIT: The mouse cursor will change icon (not on El Capitan).
    • Now you can drag the code over the snippets library, where a green + icon will appear. EDIT: On El Capitan the green icon does not appear, but the frame of the code snippets window will become thinner.

提交回复
热议问题