您的位置:首页 > 编程语言 > Java开发

【sublime】修改成类似Eclipse快捷键

2017-11-16 15:49 387 查看
第一步::依次打开
Preferences
->
Key Bindings




第二步:将下面的key配置放入到下面

[
// editor配置
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+shift+v"], "command": "paste" },
//{ "keys": ["ctrl+shift+x"], "command": "upper_case" },
//{ "keys": ["ctrl+shift+y"], "command": "lower_case" },
// 删除整行
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
// 光标移动到指定行
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
// 快速定位到选中的文字
{ "keys": ["ctrl+k"], "command": "find_under_expand_skip" },
// 这个命令默认使用的是ctrl+shift+P
{ "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
// outline
{ "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
// 当前文件中的关键字(方便快速查找内容)
{ "keys": ["ctrl+alt+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
// open resource
{ "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
// 文件内查找/替换
{ "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "replace"} },
// 全局查找/替换, 在查询结果中双击跳转到匹配位置
{"keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "find_in_files"} },
// plugin配置
{ "keys": ["alt+a"], "command": "alignment" },
{ "keys": ["ctrl+shift+f"], "command": "js_format" }
]


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息