1. 程式人生 > >Sublime Text 3 自定義快捷鍵

Sublime Text 3 自定義快捷鍵

由於慣用Eclipse/MyEclipse的快捷鍵,故而將Sublime Text 3的部分快捷鍵或者無快捷鍵的部分操作進行自定義快捷鍵。

操作方法:在選單欄選擇【Preferences】-->【Key Blinding - User】,在出現的頁面中編輯自定義快捷鍵的內容。

[
/* *
* Customize Keys
* */

// delete the current line
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
// open in browser
{ "keys": ["ctrl+b"], "command": "open_in_browser" },
// format code
{ "keys": ["ctrl+shift+f"], "command": "reindent" },
// Upper Case
{ "keys": ["ctrl+shift+x"], "command": "Upper_case" },
// Lower Case
{ "keys": ["ctrl+shift+y"], "command": "lower_case" },
// Swap Case(Cover Upper Case)
{ "keys": ["ctrl+shift+x"], "command": "swap_case" }


]

如圖所示