有没有更快的方法来执行原子拼写检查?
is there a faster way to perform spell checking in atom?
现在我必须突出显示下划线的拼写错误的单词,然后双击它,然后选择 correct spelling
,然后选择正确的单词。
我厌倦了写所有这些步骤,
知道如何更快地完成这项工作吗?
我使用 vim 插件,所以对于任何可以让我避免 trackpad/mouse.
的解决方案加 1
默认情况下,键盘快捷键 cmd-shift-:
(ctrl-shift-:
在 Windows 上)将在光标位于拼写错误的单词上时快速调出更正列表。
使用 1.11.0-beta5 版本的 Atom,我必须自己注册拼写检查键盘快捷键。
我在 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
现在我必须突出显示下划线的拼写错误的单词,然后双击它,然后选择 correct spelling
,然后选择正确的单词。
我厌倦了写所有这些步骤,
知道如何更快地完成这项工作吗?
我使用 vim 插件,所以对于任何可以让我避免 trackpad/mouse.
默认情况下,键盘快捷键 cmd-shift-:
(ctrl-shift-:
在 Windows 上)将在光标位于拼写错误的单词上时快速调出更正列表。
使用 1.11.0-beta5 版本的 Atom,我必须自己注册拼写检查键盘快捷键。
我在 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