Web上のさまざまな場所で「.sublime-mousemap」ファイルを使用する方法に関する情報が散在していますが、包括的な情報はありません。
Sublime Text 3のマウス設定を指定するときのオプションは何ですか?
あなたの問題に対する完全な解決策ではありませんが、少なくともいくつかの学習価値のためにデフォルトのマウスマップを表示することをお勧めします。
(私の場合のように)ファイルシステムで簡単に見つけられない場合は、 PackageResourceViewer プラグインがあることを 見つけました 、次の方法で開くことができます。
Ctrl+Shift+P -> "PackageResourceViewer:Open Resource"-> "Default"-> "Default(... OS ...)。sublime-mousemap"。
Windows 10では、C:\Users\Cees.Timmerman\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-mousemap
で デフォルト設定 をオーバーライドできます
そのファイルを保存すると、Sublimeはそれを使用するか、構文に誤りがある場合はエラーメッセージを表示します。
リンクが停止した場合のデフォルトのコンテンツは次のとおりです。
[
// Basic drag select
{
"button": "button1", "count": 1,
"press_command": "drag_select_callback"
},
{
"button": "button1", "count": 1, "modifiers": ["ctrl"],
"press_command": "drag_select_callback",
"press_args": {"additive": true}
},
{
"button": "button1", "count": 1, "modifiers": ["alt"],
"press_command": "drag_select_callback",
"press_args": {"subtractive": true}
},
// Select between selection and click location
{
"button": "button1", "modifiers": ["shift"],
"press_command": "drag_select_callback",
"press_args": {"extend": true}
},
{
"button": "button1", "modifiers": ["shift", "ctrl"],
"press_command": "drag_select_callback",
"press_args": {"additive": true, "extend": true}
},
{
"button": "button1", "modifiers": ["shift", "alt"],
"press_command": "drag_select_callback",
"press_args": {"subtractive": true, "extend": true}
},
// Drag select by words
{
"button": "button1", "count": 2,
"press_command": "drag_select_callback",
"press_args": {"by": "words"}
},
{
"button": "button1", "count": 2, "modifiers": ["ctrl"],
"press_command": "drag_select_callback",
"press_args": {"by": "words", "additive": true}
},
{
"button": "button1", "count": 2, "modifiers": ["alt"],
"press_command": "drag_select_callback",
"press_args": {"by": "words", "subtractive": true}
},
// Drag select by lines
{
"button": "button1", "count": 3,
"press_command": "drag_select_callback",
"press_args": {"by": "lines"}
},
{
"button": "button1", "count": 3, "modifiers": ["ctrl"],
"press_command": "drag_select_callback",
"press_args": {"by": "lines", "additive": true}
},
{
"button": "button1", "count": 3, "modifiers": ["alt"],
"press_command": "drag_select_callback",
"press_args": {"by": "lines", "subtractive": true}
},
// Shift + Mouse 2 Column select
{
"button": "button2", "modifiers": ["shift"],
"press_command": "drag_select_callback",
"press_args": {"by": "columns"}
},
{
"button": "button2", "modifiers": ["shift", "ctrl"],
"press_command": "drag_select_callback",
"press_args": {"by": "columns", "additive": true}
},
{
"button": "button2", "modifiers": ["shift", "alt"],
"press_command": "drag_select_callback",
"press_args": {"by": "columns", "subtractive": true}
},
// Mouse 3 column select
{
"button": "button3",
"press_command": "drag_select_callback",
"press_args": {"by": "columns"}
},
{
"button": "button3", "modifiers": ["ctrl"],
"press_command": "drag_select_callback",
"press_args": {"by": "columns", "additive": true}
},
{
"button": "button3", "modifiers": ["alt"],
"press_command": "drag_select_callback",
"press_args": {"by": "columns", "subtractive": true}
},
// Simple chording: hold down mouse 2, and click mouse 1
{
"button": "button1", "count": 1, "modifiers": ["button2"],
"command": "expand_selection", "args": {"to": "line"},
"press_command": "drag_select_callback"
}
]