Multiple line comment in Xcode 8

后端 未结 5 1867
说谎
说谎 2021-02-03 18:51

I just upgraded to Xcode GM 8.0 and noticed ⌘ + / is not commenting out selected lines. Is there another command to comment out multiple lines in Xcode 8?

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-03 18:58

    Sometimes this happens to me (even with Xcode7, and just confirmed still with Xcode8) after opening the documentation window (Help -> Documentation and API Reference or cmd+shift+0). Here are a few things that have fixed it when it was happening to me:

    • Restart Xcode (realize you've already tried this, but including it for posterity)
    • Close the documentation window
    • With only 1 Xcode window open, hit cmd+~ a couple times
    • Wish really really hard

提交回复
热议问题