【发布时间】:2018-03-30 03:22:17
【问题描述】:
我使用的是 linter-spell 包,而不是 Atom 中的“默认”spell-check。
在这个question 中,有人询问如何将单词添加到拼写检查 字典中。
我的问题是如何将单词添加到 linter-spell 字典中。
【问题讨论】:
标签: atom-editor spell-checking
我使用的是 linter-spell 包,而不是 Atom 中的“默认”spell-check。
在这个question 中,有人询问如何将单词添加到拼写检查 字典中。
我的问题是如何将单词添加到 linter-spell 字典中。
【问题讨论】:
标签: atom-editor spell-checking
根据documentation 的 linter-spell:
可以使用intentions 软件包在 OSX 上通过 ctrl+enter 以及在 Linux 和 Windows 上通过 alt+enter 更正拼写错误或将其添加到个人字典中。
【讨论】:
版本1.12 具有此功能。将鼠标悬停在 word 上时按 cmd+shift 并选择 add this word
【讨论】:
如documentation中所述,
拼写检查在文档保存时完成,并由 linter 显示拼写错误。在 OSX 上通过 ctrl+enter 和在 Linux 和 Windows 上通过 alt+enter 使用意图包可以更正拼写错误或将其添加到个人字典中。
here 会明确说明您需要做什么。
它的工作方式是提示你fix linter issue,点击它你可以分配一个JS函数来做任何你想做的事情。我还发现 linter-spell 依赖于 Hunspell 和 GNU Aspel,这意味着您可以将单词添加到系统字典/或其路径中的任何字典中以使其工作。
Hunspell
在 hunspell dict 中添加新词。
echo -e "*new_word\n#" | hunspell -a
希望这会有所帮助。
【讨论】: