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

查看:73
本文介绍了如何更改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.

例如,如果要将 Ctrl Shift K 替换为 Ctrl Shift Y ,在列表中搜索它,单击复制图标以复制配置行,然后将该行放入键盘映射文件并替换快捷方式.

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天全站免登陆