前言

记录一下个人习惯sublime,环境mac。

类似 idea 系列的开发配置。

Sublime Text -> Preferences -> Settings (command + ,)

{
"font_size": 16,
"always_show_minimap_viewport": true, //是否总是显示小地图
"draw_minimap_border": true, //让minimap里的当前位置更显眼点.
"highlight_modified_tabs": true, //修改了而尚未保存的 tab, 会用橘黄色显示
"ignored_packages":
["Vintage"],
"show_full_path": true, //标题栏上显示完整路径
"show_line_endings": true, //文档到达底部会在最后一行
"open_files_in_new_window": false, // 在 Finder 里打开文件时, 不会新开窗口了
"translate_tabs_to_spaces": true, //将tab键的形式转成空格
"highlight_line": true, //高亮当前行
"save_on_focus_lost": true, //焦点丢失后自动保存
"trim_trailing_white_space_on_save": true, //保存的时候把无用的空格去掉
"show_encoding": true, //显示当前文件的编码
"preview_on_click": false, //在新标签页中打开新的文件
}

Sublime Text -> Preferences -> Key Binding

[ { "keys": ["command+d"], "command": "duplicate_line" }, { "keys": ["command+y"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, { "keys": ["ctrl+r"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },{ "keys": ["command+option+l"], "command": "reindent" }, ]