有没有更快的方法来执行原子中的拼写检查?
问题描述:
现在我必须突出显示拼写为拼写错误的单词,然后双击它,然后选择correct spelling
,然后选择正确的单词。 我累了只写了所有这些步骤, 任何想法如何更快完成这项工作? 我使用vim插件,所以PLUS 1可以让我避开触控板/鼠标。有没有更快的方法来执行原子中的拼写检查?
答
随着Atom的1.11.0-beta5版本,我必须自己注册拼写检查键盘快捷键。
我把我的keymap.cson以下(编辑 - >键盘映射):
'.platform-darwin atom-text-editor':
'cmd-:': 'spell-check:correct-misspelling'
'.platform-darwin .corrections atom-text-editor':
'cmd-:': 'core:cancel'
'.platform-win32 atom-text-editor':
'ctrl-:': 'spell-check:correct-misspelling'
'.platform-win32 .corrections atom-text-editor':
'ctrl-:': 'core:cancel'
'.platform-linux atom-text-editor':
'ctrl-:': 'spell-check:correct-misspelling'
'.platform-linux .corrections atom-text-editor':
'ctrl-:': 'core:cancel'
'.corrections atom-text-editor[mini]':
'enter': 'core:confirm'
'tab': 'core:confirm'
来源:https://github.com/atom/spell-check/blob/master/keymaps/spell-check.cson
答
默认情况下,当光标位于拼写错误的单词上时,键盘快捷方式cmd-shift-:
(Windows上的ctrl-shift-:
)将快速显示更正列表。