xcode 拼写检查
有没有一种方法可以在 xcode (也许是附加组件)中启用拼写检查,仅在注释内而不是在代码中进行拼写检查? (如 vim/emacs 拼写检查器)。
我已经尝试过 这个答案 中描述的内容,但似乎检查了整个文档,因为它抱怨某些变量名称和宏(我显然不想进行拼写检查)。
Is there a way to enable spell checking in xcode (maybe and add-on) that does spell checking only inside comments and not in code? (like vim/emacs spell checker).
I have tried what is described in this answer but it seems check the entire document since it complains about some variable names and macros (which I obviously don't want to spell check).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Xcode 4 还包括一个新的 Fix-It 功能,它基本上是代码的拼写检查器。它会突出显示您的错误,然后按“修复”按钮即可解决问题。
它只是在行号上显示一个红色圆圈,您必须单击该圆圈才能获得修复建议。您至少可以使用键盘快捷键来进行修复。这是“修复范围内的所有内容”键绑定。
我所见过的在您键入时显示错误的最接近的方法是切换到问题导航器并将其保持打开状态。
这是问题导航器的指南。 http://developer.apple.com/library/ ios/#recipes/xcode_help-issue_navigator/articles/viewing_issues_in_the_issue_navigator.html 希望这有帮助。
Xcode 4 also includes a new Fix-It feature, which is basically a spell-checker for code. It highlights your mistakes, and with the press of the "Fix" button, the problem is solved.
It just shows you a red circle on the line number that you have to click to get the fix it suggestions. You can use a keyboard shortcut to do the fixing at least. Here is the "Fix all in scope" key bind.
The closest thing I've been seen that shows errors as you type is to switch to issue navigator and leave that on.
Here is a guide on the issue navigator. http://developer.apple.com/library/ios/#recipes/xcode_help-issue_navigator/articles/viewing_issues_in_the_issue_navigator.html Hope this helped.