sublime text3 修改快捷鍵為eclipse


 

Preferences -> Key bindings - User 

 

[  
 { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },  
 { "keys": ["alt+/"], "command": "auto_complete" },//自動提示
 { "keys": ["alt+up"], "command": "swap_line_up" },//整行上移
 { "keys": ["alt+down"], "command": "swap_line_down" },//整行下移
 { "keys": ["alt+left"], "command": "jump_back" },//跳轉到上一個編輯處
 { "keys": ["alt+right"], "command": "jump_forward" },
 { "keys": ["ctrl+alt+j"], "command": "join_lines" },  
 { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },//整行刪除
 { "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": //搜索全文
 "find_in_files"} },
 { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },  
 { "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": //跳轉到當前的某個方法
 "goto", "text": "@"} },
 { "keys": ["ctrl+up"], "command": "goto_definition" },//跳轉到定義,比如在某個函數上按此鍵,則跳轉到它的定義。
 { "keys": ["ctrl+down"], "command": "find_under_prev" },//選中光標所在的變量或者函數,非常有用
 { "keys": ["ctrl+alt+down"], "command": "duplicate_line" },//向下復制整行
 {"keys": ["ctrl+shift+f"], "command": "reindent" , "args":{"single_line": //格式化代碼,當然也可以利用html+css+js prettify插件來格式化
 false}},
 { "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },  
 { "keys": ["ctrl+shift+s"], "command": "save_all" },  
 { "keys": ["ctrl+shift+f4"], "command": "close_all" },  
 { "keys": ["ctrl+shift+y"], "command": "lower_case" },  
 { "keys": ["ctrl+shift+x"], "command": "upper_case" } 
] 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM