Xcode 8 Beta 4 - Comment Shortcut Disabled

后端 未结 12 1133
礼貌的吻别
礼貌的吻别 2020-12-04 07:41

I just updated to Xcode 8 Beta 4 and the shortcut cmd + / to comment a line is not working..

In the dropdown menu it\'s disabled:

<

相关标签:
12条回答
  • 2020-12-04 07:54

    xcode->preferences->key buildings, or,

    "command + ,", then search "comment selection" change the key "command + /"

    0 讨论(0)
  • 2020-12-04 07:57

    This made it for me:

    Goto System Preferences -> Keyboard -> Shortcuts -> App Shortcuts

    Add a new shortcut like this:

    Voila! It works for me!

    As you can see the shortcut you choose will also end up besides this command in Editor menu in Xcode.

    0 讨论(0)
  • 2020-12-04 08:03

    As explained there, here's a solution that doesn't require a reboot:

    1. Close Xcode
    2. In the Application folder, rename Xcode.app (or similar) to Xcode2.app. You might need to type in your password.
    3. Open Xcode, then close it.
    4. Rename Xcode2.app back to what it was before.
    5. (Optional) Spend 5 minutes wondering why this worked.
    0 讨论(0)
  • 2020-12-04 08:03

    Just update to Xcode8 release, then open Xcode8 and restart Mac.

    https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html

    To use the Editor's Comment/Uncomment Selection and Add Documentation commands—as well as other installed Xcode Extensions—on OS X version 10.11, launch Xcode and install additional system components, then restart your Mac. (26106213)

    0 讨论(0)
  • 2020-12-04 08:06

    Go to App Store, check for system update(iTunes, MacOSX). Update all of them.

    It should be fixed once its done.

    0 讨论(0)
  • 2020-12-04 08:06

    xcode->preferences->key buildings-> filter, search comment

    see if there are conflicts for key of "command + / ", if yes, delete others unless "Comment Selection"

    enter image description here

    0 讨论(0)
提交回复
热议问题