默认的快捷键

  1. Ctrl+L 选择整行(按住-继续选择下行)
  2. Ctrl+Shift+K 删除整行, ctrl + KK 从光标处删之行尾,Ctrl+K Backspace 从光标处删除至行首
  3. Ctrl+Shift+D 复制光标所在整行,插入在该行之前
  4. Ctrl+D 选词 (按住-继续选择下个相同的字符串,再按,可跳到相应的方法定义处
  5. Ctrl+Shift+M 选择括号内的内容(按住-继续选择父括号)
  6. Ctrl+/ 注释整行(如已选择内容,同“Ctrl+Shift+/”效果)
  7. Ctrl + alt + / 取消注释
  8. Ctrl+Shift+UP 与上行互换 ctrl + shift + up: 列模式编辑
  9. Ctrl + R 跳转当前页的目标方法
  10. Ctrl+K + U 大写
  11. Ctrl+K + L 小写
  12. 鼠标中间 列模式编辑
  13. Ctrl+Shift+[] 代码折叠
  14. ctrl+k ctrl+1: 折叠所有代码
  15. Ctrl + K,B 打开侧边栏
  16. ctrl + 回车:  光标后插入行, Ctrl+Shift+Enter 光标前插入行
  17. ctrl + m: 匹配括号
  18. Ctrl+Shift+M: 选择括号内的内容(按住-继续选择父括号)
  19. ctrl +z, y: 撤销,恢复撤销
  20. alt + .: 闭合当前标签
  21. Ctrl+F2: 设置书签
  22. F2: 下一个书签
  23. Shift+F2: 上一个书签
  24. ctrl + p: 即时的文件切换
  25. ctrl + shift + a: 选择标签内的内容

emmet(zencoding)快捷键

  1. match_pair_outward: ctrl+,向外匹配
  2. match_pair_inward: ctrl+alt+,向内匹配
  3. matching_pair: ctrl+alt+j,快速匹配html标签(phpstorm: ctrl + [])
  4. split_join_tag: shift+ctrl+`,快速成对修改html标签
  5. remove_tag: shift+ctrl+;删除包裹的html标签(phpstorm: ctrl + shift + del)
  6. increment_number_by_1: ctrl+up,数字快速增长,步长为1
  7. decrement_number_by_1: ctrl+down,数字快速递减,步长为1
  8. increment_number_by_01: alt+up,数字快速增长,步长为0.1
  9. decrement_number_by_01: alt+down,数字快速递减,步长为0.1
  10. increment_number_by_10:shift+alt+up,数字快速增长,步长为10
  11. decrement_number_by_10: shift+alt+down,数字快速递减,步长为10
  12. select_next_item:shift+ctrl+.
  13. select_previous_item: shift+ctrl+,,
  14. wrap_as_you_type: shift+ctrl+g,包裹内容

自定义的快捷键,主要和phpstorm,idea保持一致(Preferences -> key bindings user)

[
    { "keys": ["ctrl+shift+c"], "command": "copy_path" },
    { "keys": ["ctrl+shift+b"], "command": "open_in_browser" },
    { "keys": ["f11"], "command": "toggle_distraction_free" },
    { "keys": ["alt+c"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
    { "keys": ["alt+s"], "command": "toggle_comment" },
    { "keys": ["ctrl+d"], "command": "duplicate_line" },
    { "keys": ["ctrl+shift+d"], "command": "find_under_expand" },
    { "keys": ["alt+d"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },
    { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
    { "keys": ["f1"], "command": "toggle_side_bar" }
]
版权声明:本文为李维亮博主的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:http://www.liweiliang.com/382.html

标签: SublimeText, sublimetxt-keymap

评论已关闭