美文网首页
Xcode - Spelling and Grammer

Xcode - Spelling and Grammer

作者: ienos | 来源:发表于2021-12-01 11:35 被阅读0次

    Xcode 11 添加拼写拼写错误检查支持,源代码编译器中的所有内容都可以进行拼写检查,包括变量、方法、类的名称以及注释等等。

    如何进行快速检查?

    ⌘ + ; 可以快速跳转到拼写错误的代码、字符串和注释,重复步骤可以跳转下一个

    ⌘ + ;.gif

    当跳转到想要修改的单词时,右键该单词,可以看到有提供建议的单词和 IgnoreSpelling 、Learn Spelling;点击单词可以直接修改,Ignore Spelling 可以忽略该单词,不再提示,或者通过 Learn Spelling 添加到字典中

    Show Spelling and Grammer

    Spelling and Grammer

    Spelling and Grammer 的位置在 Edit -> Format 下,其中有三个


    Show Spelling and Grammer

    Show Spelling and Grammer

    ⌘ + : 也就是 ⌘ + ⬆︎ + ; ,然后会出现一个 Spelling and Grammer 的窗口

    image.png

    选中列表中的单词,然后点击 Change 可直接替换字符串

    • Find Next 寻找下一个单词
    • Ignore 忽略该单词
    • Learn 学习该单词
    • Define 跳转词典 APP 搜索单词
    • Guess 更正建议

    Check Document Now

    ⌘ + ; 检查当前文档的拼写错误

    Check Spelling While Typing

    勾选,是否实时显示拼写错误提示

    如何删除 Learn 之后的单词 ?

    第一种方式在 Pages 文稿 app 中忘记拼写


    forget-spelling.png

    第二种方式前往 ~/Library/Spelling ,找到 LocalDictionary 文件,然后添加或删除拼写单词;最后需要在活动监视器找到并关闭 AppSpell,关闭后会自动重启,并更新 Xcode 中的提示

    相关文章

      网友评论

          本文标题:Xcode - Spelling and Grammer

          本文链接:https://www.haomeiwen.com/subject/jqhsxrtx.html