xcode 拼写检查

发布于 2024-10-11 00:16:53 字数 226 浏览 7 评论 0原文

有没有一种方法可以在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我要还你自由 2024-10-18 00:16:53

Xcode 4 还包括一个新的 Fix-It 功能,它基本上是代码的拼写检查器。它会突出显示您的错误,然后按“修复”按钮即可解决问题。

它只是在行号上显示一个红色圆圈,您必须单击该圆圈才能获得修复建议。您至少可以使用键盘快捷键来进行修复。这是“修复范围内的所有内容”键绑定。

Fix Next Issue:
control + Command + '

Fix Previous Issue:
control + Command + "

Fix All In Scope:
control + Command + F

我所见过的在您键入时显示错误的最接近的方法是切换到问题导航器并将其保持打开状态。
这是问题导航器的指南。 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.

Fix Next Issue:
control + Command + '

Fix Previous Issue:
control + Command + "

Fix All In Scope:
control + Command + F

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文