Sublimetxt-keymap
默认的快捷键
- Ctrl+L 选择整行(按住-继续选择下行)
- Ctrl+Shift+K 删除整行, ctrl + KK 从光标处删之行尾,Ctrl+K Backspace 从光标处删除至行首
- Ctrl+Shift+D 复制光标所在整行,插入在该行之前
- Ctrl+D 选词 (按住-继续选择下个相同的字符串,再按,可跳到相应的方法定义处
- Ctrl+Shift+M 选择括号内的内容(按住-继续选择父括号)
- Ctrl+/ 注释整行(如已选择内容,同“Ctrl+Shift+/”效果)
- Ctrl + alt + / 取消注释
- Ctrl+Shift+UP 与上行互换 ctrl + shift + up: 列模式编辑
- Ctrl + R 跳转当前页的目标方法
- Ctrl+K + U 大写
- Ctrl+K + L 小写
- 鼠标中间 列模式编辑
- Ctrl+Shift+[] 代码折叠
- ctrl+k ctrl+1: 折叠所有代码
- Ctrl + K,B 打开侧边栏
- ctrl + 回车: 光标后插入行, Ctrl+Shift+Enter 光标前插入行
- ctrl + m: 匹配括号
- Ctrl+Shift+M: 选择括号内的内容(按住-继续选择父括号)
- ctrl +z, y: 撤销,恢复撤销
- alt + .: 闭合当前标签
- Ctrl+F2: 设置书签
- F2: 下一个书签
- Shift+F2: 上一个书签
- ctrl + p: 即时的文件切换
- ctrl + shift + a: 选择标签内的内容
emmet(zencoding)快捷键
- match_pair_outward: ctrl+,向外匹配
- match_pair_inward: ctrl+alt+,向内匹配
- matching_pair: ctrl+alt+j,快速匹配html标签(phpstorm: ctrl + [])
- split_join_tag: shift+ctrl+`,快速成对修改html标签
- remove_tag: shift+ctrl+;删除包裹的html标签(phpstorm: ctrl + shift + del)
- increment_number_by_1: ctrl+up,数字快速增长,步长为1
- decrement_number_by_1: ctrl+down,数字快速递减,步长为1
- increment_number_by_01: alt+up,数字快速增长,步长为0.1
- decrement_number_by_01: alt+down,数字快速递减,步长为0.1
- increment_number_by_10:shift+alt+up,数字快速增长,步长为10
- decrement_number_by_10: shift+alt+down,数字快速递减,步长为10
- select_next_item:shift+ctrl+.
- select_previous_item: shift+ctrl+,,
- 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
- 上一篇: 在sublime-text 中设置浏览器预览方法(2)
- 下一篇: CI3.0 默认路由问题 解决办法
评论已关闭