如何使用
前端開發(fā)插件
1.sublime 使用eclipse快捷鍵
Preferences -> Key bindings - User
*注意:是 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" },//跳轉(zhuǎn)到上一個編輯處
{ "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+f"], "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": //跳轉(zhuǎn)到當(dāng)前的某個方法
"goto", "text": "@"} },
{ "keys": ["ctrl+up"], "command": "goto_definition" },//跳轉(zhuǎn)到定義奏候,比如在某個函數(shù)上按此鍵璃俗,則跳轉(zhuǎn)到它的定義铁追。
{ "keys": ["ctrl+down"], "command": "find_under_prev" },//選中光標(biāo)所在的變量或者函數(shù),非常有用
{ "keys": ["ctrl+alt+down"], "command": "duplicate_line" },//向下復(fù)制整行
{"keys": ["ctrl+shift+l"], "command": "reindent" , "args":{"single_line": //格式化代碼梁丘,當(dāng)然也可以利用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" } ,
{ "keys": ["ctrl+w"], "command": "open_in_browser" }/*在瀏覽器中打開的快捷鍵*/
]
2.安裝view
//打開Key bindings - User 添加一下代碼
{ "keys": ["ctrl+w"], "command": "open_in_browser" }