我的SublimeText改键
[
/**
* 我的改键
*/
// f1控制中心;f2快速查找;f3查找下一个;
{ "keys": ["f1"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
{ "keys": ["f2"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
// { "keys": ["f2"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["f3"], "command": "find_next" },
// f4单行注释;f5区块注释;
{ "keys": ["f4"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["f5"], "command": "toggle_comment", "args": { "block": true } },
// ctrl+d重复一行(块);ctrl+e删除行;
{ "keys": ["ctrl+d"], "command": "duplicate_line" },
{ "keys": ["ctrl+e"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
// alt+d向下选中重复
{ "keys": ["alt+d"], "command": "find_under_expand" },
// ctrl+b打开文件侧边栏
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" },
// alt+v打开剪切板
{ "keys": ["alt+v"], "command": "paste_from_history" },
// alt+q切换标签.另alt+数切换位置便签
{ "keys": ["alt+q"], "command": "next_view_in_stack" },
// alt+鼠标左键 跳转到方法
{ "keys": ["f12"], "command": "goto_definition" },
// ctrl+` emmet快速编辑html
{
"keys": [
"ctrl+`"
],
"args": {
"action": "expand_abbreviation"
},
"command": "run_emmet_action",
"context": [
{
"key": "emmet_action_enabled.expand_abbreviation"
}
]
},
// Alt+1/2 分屏显示
{
"keys": ["alt+1"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
{
"keys": ["alt+2"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
// alt+3/4左右切换标签
{ "keys": ["alt+3"], "command": "prev_view" },
{ "keys": ["alt+4"], "command": "next_view" },
// alt+鼠标左键跳转到方法
{
"button": "button1",
"count": 1,
"press_command": "goto_definition",
"modifiers": ["alt"],
"command": "goto_definition"
},
]
{
"always_show_minimap_viewport": true,
"auto_complete_triggers":
[
{
"characters": " ",
"selector": "text.html"
}
],
"color_scheme": "Packages/User/WwlStyle.tmTheme",
"default_line_ending": "unix",
"font_size": 15,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"GoSublime",
"Git",
"BracketHighlighter",
"Vintage"
],
"line_padding_bottom": 1,
"line_padding_top": 1,
"open_files_in_new_window": false,
"soda_classic_tabs": true,
"soda_folder_icons": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"update_check": false,
"word_wrap": true
}