如何通过键盘键在崇高中导航?

时间:2017-03-23 06:58:52

标签: sublimetext2 sublimetext3 sublimetext

Sublime' alt +数字键'工作切换至少10个选项卡打开 但是相同的选项不能用于键盘按键不起作用。 有没有人知道如何使它工作? 谢谢:))

2 个答案:

答案 0 :(得分:2)

只需将其添加到您的用户键绑定文件中:

{ "keys": ["alt+keypad1"], "command": "select_by_index", "args": { "index": 0 } },
{ "keys": ["alt+keypad2"], "command": "select_by_index", "args": { "index": 1 } },
{ "keys": ["alt+keypad3"], "command": "select_by_index", "args": { "index": 2 } },
{ "keys": ["alt+keypad4"], "command": "select_by_index", "args": { "index": 3 } },
{ "keys": ["alt+keypad5"], "command": "select_by_index", "args": { "index": 4 } },
{ "keys": ["alt+keypad6"], "command": "select_by_index", "args": { "index": 5 } },
{ "keys": ["alt+keypad7"], "command": "select_by_index", "args": { "index": 6 } },
{ "keys": ["alt+keypad8"], "command": "select_by_index", "args": { "index": 7 } },
{ "keys": ["alt+keypad9"], "command": "select_by_index", "args": { "index": 8 } },
{ "keys": ["alt+keypad0"], "command": "select_by_index", "args": { "index": 9 } },

答案 1 :(得分:2)

open preferences  keybinding and add this lines.
and now alt+keypad 0-9 keys work to swtich tabs

[{ "keys": ["alt+keypad1"], "command": "select_by_index", "args": { "index": 0 } },
{ "keys": ["alt+keypad2"], "command": "select_by_index", "args": { "index": 1 } },
{ "keys": ["alt+keypad3"], "command": "select_by_index", "args": { "index": 2 } },
{ "keys": ["alt+keypad4"], "command": "select_by_index", "args": { "index": 3 } },
{ "keys": ["alt+keypad5"], "command": "select_by_index", "args": { "index": 4 } },
{ "keys": ["alt+keypad6"], "command": "select_by_index", "args": { "index": 5 } },
{ "keys": ["alt+keypad7"], "command": "select_by_index", "args": { "index": 6 } },
{ "keys": ["alt+keypad8"], "command": "select_by_index", "args": { "index": 7 } },
{ "keys": ["alt+keypad9"], "command": "select_by_index", "args": { "index": 8 }}]