JAYSON

I'm a developer.

导航

Sublime Text 3 自用快捷键

自用快捷键目的是为了减少鼠标的使用,提高开发效率。

 

快捷键配置:

[
  // 代码对齐插件
    { "keys": ["shift+alt+a"], "command": "alignment" },
 
  // 代码书签快捷键代替
    { "keys": ["f8"], "command": "next_bookmark" },
    { "keys": ["shift+f8"], "command": "prev_bookmark" },
    { "keys": ["ctrl+f8"], "command": "toggle_bookmark" },
    { "keys": ["ctrl+shift+f8"], "command": "clear_bookmarks" },
    { "keys": ["alt+f8"], "command": "select_all_bookmarks" },

    // 删除行
    { "keys": ["ctrl+alt+k", "ctrl+alt+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} },
    { "keys": ["ctrl+shift+alt+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },  

  // 光标移动
    { "keys": ["shift+alt+u"], "command": "move_to", "args": {"to": "bol", "extend": true} },
    { "keys": ["shift+alt+i"], "command": "move_to", "args": {"to": "eol", "extend": true} },
  
    { "keys": ["alt+a"], "command": "move_to", "args": {"to": "bol", "extend": false} },
    { "keys": ["alt+e"], "command": "move_to", "args": {"to": "eol", "extend": false} },
  
    { "keys": ["alt+u"], "command": "move_to", "args": {"to": "bol", "extend": false} },
    { "keys": ["alt+i"], "command": "move_to", "args": {"to": "eol", "extend": false} },

    { "keys": ["shift+alt+h"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
    { "keys": ["shift+alt+l"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
    { "keys": ["shift+alt+k"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
    { "keys": ["shift+alt+j"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
  
    { "keys": ["alt+b"], "command": "move", "args": {"by": "characters", "forward": false} },
    { "keys": ["alt+f"], "command": "move", "args": {"by": "characters", "forward": true} },
    { "keys": ["alt+p"], "command": "move", "args": {"by": "lines", "forward": false} },
    { "keys": ["alt+n"], "command": "move", "args": {"by": "lines", "forward": true} },

    { "keys": ["alt+h"], "command": "move", "args": {"by": "characters", "forward": false} },
    { "keys": ["alt+l"], "command": "move", "args": {"by": "characters", "forward": true} },
    { "keys": ["alt+k"], "command": "move", "args": {"by": "lines", "forward": false} },
    { "keys": ["alt+j"], "command": "move", "args": {"by": "lines", "forward": true} },

    { "keys": ["ctrl+alt+h"], "command": "move", "args": {"by": "words", "forward": false} },
    { "keys": ["ctrl+alt+l"], "command": "move", "args": {"by": "word_ends", "forward": true} },
    { "keys": ["ctrl+shift+alt+h"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
    { "keys": ["ctrl+shift+alt+l"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} }
]

 

配色方案:
Theme:
Color Scheme:
Settings-User:
{
    "color_scheme": "Packages/Color Scheme - Sleeplessmind/Sleeplessmind.tmTheme",
}
//------------------------------------------------
{
    "itg_sidebar_tree_large": true,
    "itg_small_tabs": true,
    "theme": "itg.flat.light.sublime-theme"
}
//------------------------------------------------
{
    "numix_sidebar_tree_large": true,
    "numix_light_tabs_small": true,
    "theme": "Numix Light.sublime-theme",
}

 

插件类:

  • Emmet (前端)
  • DocBlockr (代码注释)
  • Advanced​New​File (文件新建)

 

相关阅读:

  • https://laravel-china.org/topics/1394

posted on 2016-09-29 11:14  金一山  阅读(404)  评论(0编辑  收藏  举报