原因
sublime某个版本之后,切换文件tab的默认快捷键从【ctrl+数字键】变成了【alt+数字键】
解法
解法1
1、修改快捷键
打开Preferences-Key Bindings,在右侧框里填写下面代码块里的内容,即可将默认的alt+数字键的项,改为ctrl+数字键
[
{ "keys": ["ctrl+1"], "command": "select_by_index", "args": { "index": 0 } },
{ "keys": ["ctrl+2"], "command": "select_by_index", "args": { "index": 1 } },
{ "keys": ["ctrl+3"], "command": "select_by_index", "args": { "index": 2 } },
{ "keys": ["ctrl+4"], "command": "select_by_index", "args": { "index": 3 } },
{ "keys": ["ctrl+5"], "command": "select_by_index", "args": { "index": 4 } },
{ "keys": ["ctrl+6"], "command": "select_by_index", "args": { "index": 5 } },
{ "keys": ["ctrl+7"], "command": "select_by_index", "args": { "index": 6 } },
{ "keys": ["ctrl+8"], "command": "select_by_index", "args": { "index": 7 } },
{ "keys": ["ctrl+9"], "command": "select_by_index", "args": { "index": 8 } },
{ "keys": ["ctrl+0"], "command": "select_by_index", "args": { "index": 9 } }
]
解法2
觉得解法1麻烦的话,可以使用【alt+数字键】切换文件tab。不习惯的话就用解法1。