如何在Sublime Text 3 Portable中编辑``列选择''快捷方式 [英] How to edit 'column select' shortcut in Sublime text 3 portable

查看:98
本文介绍了如何在Sublime Text 3 Portable中编辑``列选择''快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Sublime文字的新手.以前我使用notepad ++.我经常使用列选择.在notepad ++中,它带有alt + left mouse click,可以方便地拖动到所需的选项中.

I am a novice to Sublime text. Previously I used notepad++. I use column selection frequently. In notepad++ it comes to me handy with alt + left mouse click which I can drag up to my wished selection.

在Sublime文本中,为shift + right mouse click并向上拖动至Windows的所需选择.我想将其更改为alt + left mouse click,就像我在记事本++中所使用的一样. 我尝试在preferences > key bindings中的高品质文本中搜索.但是找不到那里的鼠标键映射.我正在 Windows 上使用 Sublime文本3的便携式版本.

In Sublime text, it is shift + right mouse click and drag up to wished selection for Windows. I want to change it to alt + left mouse click as I have used it in notepad++. I tried searching in preferences > key bindings in sublime text. But couldn't find mouse-key mappings there. I am using portable version of Sublime text 3 on Windows.

推荐答案

转到Preferences > Browse Packages...,然后在User文件夹中创建一个名为Default (Windows).sublime-mousemap的新文件.

Go to Preferences > Browse Packages... then create a new file called Default (Windows).sublime-mousemap in the User folder.

插入以下内容:

[
    {
        "button": "button1", "modifiers": ["alt"],
        "press_command": "drag_select",
        "press_args": {"by": "columns"}
    },
    {
        "button": "button1", "modifiers": ["alt", "ctrl"],
        "press_command": "drag_select",
        "press_args": {"by": "columns", "additive": true}
    },
    {
        "button": "button1", "modifiers": ["shift", "alt"],
        "press_command": "drag_select",
        "press_args": {"by": "columns", "subtractive": true}
    },
]

这篇关于如何在Sublime Text 3 Portable中编辑``列选择''快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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