在IntelliJ IDEA和Atom编辑器中使用相同的按键映射

7

我使用WebStorm、Android Studio和Atom。

对于Android Studio和WebStorm,我只需导出设置,但是对于Atom,我无法从IntellJ IDEA导入设置。

我该如何保持与IntelliJ相同的快捷键(键位映射)并在Atom编辑器中使用?

有没有工具可以将IntelliJ的键位映射导出为Atom格式?

1个回答

6
我在开始使用Atom时到处搜寻这个问题,但遗憾的是我从未找到任何有用信息。下面列出的并不是完整的映射表,只是我经常使用的一些按键映射。Atom中的按键映射系统非常令人沮丧,有些事情需要花费一些时间来完成。但如果有帮助的话,请参考以下内容。此外,这是我的.atom文件夹。 https://github.com/j-walker23/dotfiles/tree/develop/atom/atom.symlink
'body':
  'cmd-h': 'unset!'

'html atom-text-editor.vim-mode.normal-mode':
  'U': 'core:redo'
  'cmd-1': 'tree-view:toggle-focus'
  'L': 'vim-mode:move-to-last-character-of-line'
  'cmd-F': 'formatter:format-code'
  'cmd-shift-c': 'window:toggle-dev-tools'
  'cmd-.': 'key-peek:toggle'
  'cmd->': 'key-binding-resolver:toggle'

  'cmd-k h':  'pane:split-left-creating-empty-pane'
  'cmd-k l': 'pane:split-right-creating-empty-pane'
  'cmd-k k':    'pane:split-up-creating-empty-pane'
  'cmd-k j':  'pane:split-down-creating-empty-pane'

  'cmd-k m h':  'pane:split-left-moving-current-tab'
  'cmd-k m l': 'pane:split-right-moving-current-tab'
  'cmd-k m k':    'pane:split-up-moving-current-tab'
  'cmd-k m j':  'pane:split-down-moving-current-tab'

  'cmd-I': 'pane-move:down'
  'cmd-H': 'pane-move:left'
  'cmd-L': 'pane-move:right'
  'cmd-K': 'pane-move:up'


'html .platform-darwin atom-text-editor.vim-mode:not(.insert-mode)':
  'cmd-p': 'clipboard-plus:toggle'
  'cmd-shift-v': 'clipboard-plus:toggle'


'atom-text-editor.vim-mode.normal-mode':
  'o': 'custom:newline-below'
  'O': 'custom:newline-above'

'atom-panel.clipboard-plus, atom-panel .project-manager, .platform-darwin .command-palette, .fuzzy-finder':
  'J': 'core:move-down'
  'K': 'core:move-up'

'atom-text-editor:not(.mini).vim-mode:not(.insert-mode):not(.jumpy-jump-mode)':
    'f':    'jumpy:toggle'

'html atom-workspace':
  'cmd-n': 'tree-view:add-file'
  'cmd-shift-o': 'fuzzy-finder:toggle-file-finder'

'html .platform-darwin atom-text-editor':
  # 'cmd-e': 'recent-files-fuzzy-finders:toggle-finder'
  'cmd-b': 'symbols-view:go-to-declaration'
  'cmd-shift-b': 'symbols-view:return-from-declaration'
  'cmd-r': 'find-and-replace:show-replace'
  'cmd-[': 'last-cursor-position:previous'
  'cmd-]': 'last-cursor-position:next'

'html .platform-darwin atom-text-editor.vim-mode:not(.insert-mode)':
  'n': 'find-and-replace:find-next'

'atom-workspace atom-pane, atom-workspace atom-text-editor:not(.mini)':
  'cmd-k n l': 'window:focus-pane-on-right'
  'cmd-k n h': 'window:focus-pane-on-left'
  'cmd-k n j': 'window:focus-pane-below'
  'cmd-k n k': 'window:focus-pane-above'

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接