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

前端 未结 5 1228
囚心锁ツ
囚心锁ツ 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:06

    On High Sierra 10.13.3 and XCode 9 I faced the same problem. The decision that works for me is selecting code on a blank space before the first symbol and then dragging it to the snippets library.

    Important: you need to drag only from the blank space (look at the screenshot below). Otherwise you will reselect your code again.

    The cursor changes only when you start dragging, so don't be confused and don't wait until it changes.

提交回复
热议问题