无法评论选择 [英] Can't comment selection
问题描述
有时候,我似乎无法使用下面的常用快捷方式(命令
+ /
)注释我的代码Xcode 8 Beta4。该选项在菜单中被禁用(下面的屏幕截图)。
您知道为什么吗?
我是唯一一个遇到此问题的人吗?
编辑:重新启动Xcode后,它似乎可以再次工作。
EDIT2:它仍然在Xcode 8.1上出现。也许是因为我安装了两个版本的Xcode(普通版和Beta版)?不能通过简单的重新启动来解决它!
EDIT3:建议的 xpccachectl
命令不能解决该问题
- 退出Xcode
- 在终端中输入
sudo / usr / libexec / xpccachectl
- 重新启动Xcode
- 重新启动您的Mac(如果需要)
Sometimes, it seems I can't comment my code with the usual shortcut (command
+ /
) under Xcode 8 Beta 4. The option is disabled in the menu (screenshot below).
Do you have any idea why? Am I the only one having this issue?
EDIT: It seems to work again after restarting Xcode... Still looking from where it comes. It's a bit annoying...
EDIT2: It still occurs on Xcode 8.1. Maybe because I have 2 versions of Xcode installed (normal and beta)? Can't fix it anymore with a simple restart!
EDIT3: the proposed xpccachectl
command to fix it doesn't exist on MacOS High Sierra.
- Exit Xcode
- Type
sudo /usr/libexec/xpccachectl
in Terminal - Restart Xcode
- Restart your Mac if needed
这篇关于无法评论选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!