如何更改 Atom 键绑定 [英] How to change Atom Keybindings

查看:42
本文介绍了如何更改 Atom 键绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望更改 Atom 文本编辑器的键绑定.我熟悉 Android Studio.

I am looking to change keybindings of Atom text editor. I am familiar with Android Studio.

Atom 是否允许我们自定义键绑定?

Does Atom allow us to customize key bindings?

推荐答案

您必须转到编辑"->首选项"->键绑定".在此选项卡中,您可以看到您的实际绑定,如果您想更改它,您可以访问键盘映射文件和超额配置.

You have to go to Edit -> Preferences -> Keybinding. In this tab you can see your actual binding and if you want to change it, you can access to the keymap file and overcharged configuration.

要访问此文件,您可以单击键绑定"标题下方的链接.

To access this file you can click on the link below the "Keybindings" title.

例如,如果您想将 CtrlShiftK 替换为 CtrlShiftY,在列表中搜索,点击复制图标复制配置行,将该行放入keymap文件并替换快捷键.

For example, if you want to replace the CtrlShiftK by CtrlShiftY, search it in the list, click on the copy icon to copy the configuration line, and put the line into the keymap file and replace the shortcut.

对于这个例子,新行是

'atom-text-editor:not([mini])':
  'ctrl-shift-Y': 'editor:delete-line'

这一行将 ctrl-shift-K 替换为 ctrl-shift-Y.您必须重新启动 Atom 才能应用此更改.

This line replace ctrl-shift-K by ctrl-shift-Y. You have to relaunch Atom to apply this change.

这篇关于如何更改 Atom 键绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆