sublime添加eclipse快捷键

已经习惯eclipse的快捷键
参考http://blog.icoloma.com/2011/10/eclipse-shortcuts-for-sublime-text-2.html
将sublime的快捷键设置成eclipse常用的。
方法:在Preferences -> Key bindings - User中输入

[
 { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
 { "keys": ["alt+up"], "command": "swap_line_up" },
 { "keys": ["alt+down"], "command": "swap_line_down" },
 { "keys": ["alt+/"], "command":"auto_complete" },
 { "keys": ["alt+/","alt+/"], "command":"insert_best_completion" },
 { "keys": ["alt+b"], "command":"move_to", "args": {"to": "bol","extend": false} },
 { "keys": ["alt+e"], "command":"move_to", "args": {"to": "eol","extend": false} },
 { "keys": ["shift+alt+b"], "command":"move_to", "args": {"to": "bol","extend": true} },
 { "keys": ["shift+alt+e"], "command":"move_to", "args": {"to": "eol","extend": true} },
 { "keys": ["ctrl+alt+j"], "command": "join_lines" },
 { "keys": ["ctrl+alt+down"], "command": "duplicate_line" },
 { "keys": ["shift+ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
 { "keys": ["ctrl+shift+s"], "command": "save_all" },
 { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
 { "keys": ["shift+ctrl+f4"], "command": "close_all" },
 { "keys": ["shift+ctrl+y"], "command": "lower_case" },
 { "keys": ["shift+ctrl+x"], "command": "upper_case" },
 { "keys": ["ctrl+r"], "command": "prompt_open_file" },
 { "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
 { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
]


因为本人的主要用途是查看代码,所以上面只涉及一些简单的查看设置;要是想完全打造自己的开发环境,要想最简单的方式,打开sublime默认的快捷键,想要的进行替换或者重新设置。
附件:sublime windows下默认的快捷键

猜你喜欢

转载自takemind.iteye.com/blog/2258355
今日推荐