如何在Sublime Text 3 Portable中编辑``列选择''快捷方式 [英] How to edit 'column select' shortcut in 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屋!