Xcode 中的键盘快捷键停止工作
我第一次注意到这一点是因为 Cmd-/
偶尔拒绝对代码行进行注释-取消注释。但现在(刚刚转到 XCode 4.1,尽管这可能不相关)使用 Cmd-B
进行构建也发生了这种情况。
我不知道我在做什么导致这种情况,或者它发生的时间是否有任何模式。
I first noticed this with Cmd-/
occasionally refusing to work for comment-uncomment lines of code. But now (having just gone to XCode 4.1, although that may not be related) it's happened with Cmd-B
to build as well.
I can't figure out what I'm doing to cause this, or if there's any pattern to when it happens.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
点击
command+[
一次,然后command+/
开始工作。您可以再次点击command+]
来撤消缩进效果。最初在此处发布了我的答案
Hit
command+[
once and thencommand+/
starts working. You can hitcommand+]
again to undo the indentation effect.Originally posted my answer here
4.2 好像已经修复了。作为一个答案,或许不能令人满意,但至少已经解决了。
Seems to have been fixed in 4.2. As an answer, perhaps unsatisfying, but at least it's resolved.
就我而言,我的键盘在其他文件中工作,当前打开的文件已被锁定。
只需在查找器中显示键盘无法工作的当前文件,然后转到查找器中该文件的信息(Cmd+I)并解锁该文件。您的键盘将开始使用该文件。
我的页面被使用 cmd+/ 锁定。
In my case my keyboard was working in other files the current opened file was locked.
Just reveal in finder your current file where your keyboard was not working, and go to info (Cmd+I) of this file in finder and unlock this file. Your keyboard will start working for this file.
My page was locked using cmd+/.