Sublime Text 自定义换行、缩进、标尺
{
"tab_size": 4,
"translate_tabs_to_spaces": true,
"default_line_ending": "unix",
"word_wrap": ture,
"wrap_width": 80,
"rulers": [80],
"trim_trailing_white_space_on_save": ture,
"ensure_newline_at_eof_on_save": ture,
}
// 设置tab的大小为4 "tab_size": 4,
// 使用空格代替tab "translate_tabs_to_spaces": true,
// 添加行宽标尺 "rulers": [80, 100],
// 显示空白字符 "draw_white_space": "all",
// 保存时自动去除行末空白 "trim_trailing_white_space_on_save": true,
// 保存时自动增加文件末尾换行 "ensure_newline_at_eof_on_save": true,
设置用户选项,各参数在默认配置中均可检索出默认值,以及注释。
常用的默认选项
{ "draw_centered": false, "font_size": 16, "gutter": true, "ignored_packages":["Vintage"], "line_numbers": true, "line_padding_bottom": 1, "line_padding_top": 1, "scroll_past_end": true, "update_check": false, "tab_size": 4, "translate_tabs_to_spaces": true, "default_line_ending": "unix", "word_wrap": true, "wrap_width": 80, "rulers": [80], "trim_trailing_white_space_on_save": true, "ensure_newline_at_eof_on_save": true, }