快捷键
在SublimeText里,打开Preferences -> Key Bindings - User
,可以设置自己的快捷键。
[
{"keys": ["alt+up"], "command": "swap_line_up" },//移动行,向上
{"keys": ["alt+down"], "command": "swap_line_down"} ,//移动行,向下
{"keys": ["ctrl+alt+up"], "command": "duplicate_line"},//复制行
{"keys": ["ctrl+alt+down"], "command": "duplicate_line"},
{"keys": ["ctrl+shift+x"], "command": "upper_case"} ,// 转大写
{"keys": ["ctrl+shift+y"], "command": "lower_case"} ,// 转小写
{"keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}},//删除行
{"keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}}, // 行跳转
{ "keys": ["alt+/"], "command": "auto_complete" },//自动提示
{ "keys": ["alt+left"], "command": "jump_back" },//跳转到上一个编辑处
{ "keys": ["alt+right"], "command": "jump_forward" },
{ "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },//打开工程中的某个文件
{ "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },//跳转到当前的某个方法
{ "keys": ["ctrl+down"], "command": "find_under_prev" },//选中光标所在的变量或者函数,非常有用
{ "keys": ["f3"], "command": "godef" }//转到函数定义
]
注:macOs的super 等同于 windows的ctrl