崇高的文字键盘快捷键


38

Sublime Text 2中是否有完整的键盘快捷键列表?

我正在特别寻找快捷键,这些快捷键可以使我拥有箭头键,Home,Delete(NOT Backspace)和End键的功能,而无需将手移离主行...

Answers:


30

在我问这个问题之前,我应该进行更多的挖掘工作……它们被称为“键绑定”,并且每个键都可以在文本文件中进行配置。单击“首选项”>“默认键绑定”以查看它们。将您要编辑的内容复制并粘贴到“首选项”>“用户键绑定”中,并更改为您的心中内容。

这是文档

我的问题是我要搜索“键盘快捷键”而不是“键绑定”。哎呦...

为了专门解决我有关如何复制Delete,Home,End和Arrow键的问题,我修改了“ User Key Bindings”(用户键绑定)文件,如下所示:

[
    { "keys": ["shift+backspace"], "command": "right_delete" },
    { "keys": ["ctrl+backspace"], "command": "right_delete" },

    { "keys": ["ctrl+j"], "command": "move", "args": {"by": "characters", "forward": false} },
    { "keys": ["ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true} },
    { "keys": ["ctrl+i"], "command": "move", "args": {"by": "lines", "forward": false} },
    { "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": true} },
    { "keys": ["ctrl+shift+j"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
    { "keys": ["ctrl+shift+l"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
    { "keys": ["ctrl+shift+i"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
    { "keys": ["ctrl+shift+k"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },

    { "keys": ["ctrl+alt+j"], "command": "move", "args": {"by": "words", "forward": false} },
    { "keys": ["ctrl+alt+l"], "command": "move", "args": {"by": "word_ends", "forward": true} },
    { "keys": ["ctrl+shift+alt+j"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
    { "keys": ["ctrl+shift+alt+l"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },

    { "keys": ["ctrl+,"], "command": "move_to", "args": {"to": "bol", "extend": false} },
    { "keys": ["ctrl+."], "command": "move_to", "args": {"to": "eol", "extend": false} },
    { "keys": ["ctrl+shift+,"], "command": "move_to", "args": {"to": "bol", "extend": true} },
    { "keys": ["ctrl+shift+."], "command": "move_to", "args": {"to": "eol", "extend": true} }
]

3
链接到的文档适用于Sublime Text1。对于版本2,此处提供文档:sublimetext.com/docs/2/settings.html,而在以下位置非官方(?):docs.sublimetext.info/zh/latest/customization/ key_bindings.html
Jo Liss




0

我使用Package Keymaps,它使您可以通过Command Palette搜索键绑定。


从自述文件:

特征

  • 新!按功能搜索键盘映射
  • 显示按键图的可搜索颜色编码的备忘单(概述)
  • 打开键盘映射文件以编辑所选键盘映射
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.