主题Preferences -> Settings{ "ignored_packages": [ "Vintage", ], // 主题设置 "theme": "Default Dark.sublime-theme", "color_scheme": "Monokai.sublime-color-scheme", "dark_theme": "Adaptive.sublime-theme", "light_theme": "Default Dark.sublime-theme", // 字体行距设置 "font_face": ["Consolas","Lucida Sans Typewriter","Courier New"], "font_size": 10, "line_padding_bottom": 2, "line_padding_top": 2, // 显示空格跟tab "draw_white_space": "all", // 关闭单击预览文件功能，防止文件被替换 "preview_on_click": false, // 显示当前文件编码 "show_encoding": true, // 显示当前文件换行符 "show_line_endings": true, /*"font_size": 10,*/ // 默认情况下sublime双击是不能选中$， // 比如$value，双击只能选中value而不能连$一起选中,这里把$符号删掉 // 但是这样选中$value后，但是其他出现$value的地方不高亮了。 // 解决：所以如果设置了这个，还需要安装 wordHighlight 插件 "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?", } 快捷键Preferences -> Key Bindings[ //跳转到上一个编辑地方 { "keys": ["alt+left"], "command": "jump_back" }, // 跳转到下一个编辑地方 { "keys": ["alt+right"], "command": "jump_forward" }, //整行下移 { "keys": ["alt+down"], "command": "swap_line_down" }, //整行上移 { "keys": ["alt+up"], "command": "swap_line_up" }, //自动提示 { "keys": ["alt+/"], "command": "auto_complete" }, // 转换大写 { "keys": ["ctrl+shift+x"], "command": "upper_case" }, // 转换小写 { "keys": ["ctrl+shift+y"], "command": "lower_case" }, // 删除整行 { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, // 光标移动到指定行 { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, // 快速定位到选中的文字 { "keys": ["ctrl+k"], "command": "find_under_expand_skip" }, // 这个命令默认使用的是ctrl+shift+P { "keys": ["ctrl+shift+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} }, // outline { "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} }, // 当前文件中的关键字(方便快速查找内容) { "keys": ["ctrl+alt+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} }, // open resource { "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, // 文件内查找/替换 { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "replace"} }, // 全局查找/替换, 在查询结果中双击跳转到匹配位置 {"keys": ["ctrl+shift+h"], "command": "show_panel", "args": {"panel": "find_in_files"} }, //跳转到定义，比如在某个函数上按此键，则跳转到它的定义 { "keys": ["ctrl+up"], "command": "goto_definition" }, // plugin配置 { "keys": ["alt+a"], "command": "alignment" }, // 这里使用的是html+css+js prettify插件来格式化 { "keys": ["ctrl+shift+f"], "command": "htmlprettify" }, // 选择下一个相同的 { "keys": ["alt+y"], "command": "find_under_expand" }, // 注释 { "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } }, // 在项目中搜索 { "keys": ["ctrl+shift+f12"], "command": "show_panel", "args": {"panel": "find_in_files"} }, // 根据文件名搜索 { "keys": ["shift", "shift"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, //{ "keys": ["shift", "shift"], "command": "show_overlay", "args": { "overlay": "goto", "text": "@" } }, // 换行展示 { "keys": ["alt+z"], "command": "toggle_setting", "args": {"setting": "word_wrap"} }, // markdown预览功能：需要安装两个插件：MarkdownEditing、MarkdownLivePreview {"keys": ["alt+m"], "command": "open_markdown_preview"}, //搜索框按下enter之后，焦点自动定在搜索结果的地方 //没有快捷键，搜索完按 ctrl+1 可以把光标移过去 //切换tab { "keys": ["ctrl+1"], "command": "select_by_index", "args": { "index": 0 } }, { "keys": ["ctrl+2"], "command": "select_by_index", "args": { "index": 1 } }, { "keys": ["ctrl+3"], "command": "select_by_index", "args": { "index": 2 } }, { "keys": ["ctrl+4"], "command": "select_by_index", "args": { "index": 3 } }, { "keys": ["ctrl+5"], "command": "select_by_index", "args": { "index": 4 } }, { "keys": ["ctrl+6"], "command": "select_by_index", "args": { "index": 5 } }, { "keys": ["ctrl+7"], "command": "select_by_index", "args": { "index": 6 } }, { "keys": ["ctrl+8"], "command": "select_by_index", "args": { "index": 7 } }, { "keys": ["ctrl+9"], "command": "select_last_tab" }, //左右分屏，需要分几个输入数字几，最多分4列，复原的话将2改为1 { "keys": ["alt+shift+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]] } }, //上下分屏，需要分几个输入数字几，最多分4行，复原的话将2改为1 { "keys": ["ctrl+shift+2"], "command": "set_layout", "args": { "cols": [0.0, 1.0], "rows": [0.0, 0.5, 1.0], "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] } }, { "keys": ["ctrl+shift+3"], "command": "set_layout", "args": { "cols": [0.0, 1.0], "rows": [0.0, 0.33, 0.66, 1.0], "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] } }, { "keys": ["ctrl+shift+1"], "command": "set_layout", "args": { "cols": [0.0, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1]] } }, ]