Sublime Text 2是那种让人会一眼就爱上的编辑器,不仅GUI让人眼前一亮,功能更是没的说,拓展性目前来说也完全够用了,网上介绍软件的文章和推荐插件的文章也不少,而且很不错,大家可以去找找自己需要的。而且 Linux 支持也做的非常好。
之前想设置什么都是直接在网上搜,但最近想调行距,这个把我给难住了,软件上的设置没找到,网上搜也没有,最后的最后在Sublime的官方论坛找到了,个人觉得行距还是很影响视觉体验的,看看下面的对比图就知道了:
看来想驾驭好这软件不弄清楚配置文件是不行了,周末找了时间把配置文件的每条配置信息都加上了中文注释,现在贴出来和大家共享,里面有解释不清楚的也欢迎大家伙来互相讨论:)
另外,这也是我的第一篇博客,以后我会多写些前端方面的文章和大家共享,欢迎一起讨论:)
Preferences.sublime-settings文件:
// While you can edit this file, it’s best to put your changes in
// “User/Preferences.sublime-settings”, which overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
// 主题文件的路径
“color_scheme”: “Packages/Color Scheme – Default/Monokai.tmTheme”,
// Note that the font_face and font_size are overriden in the platform
// specific settings file, for example, “Preferences (Linux).sublime-settings”.
// Because of this, setting them here will have no effect: you must set them
// in your User File Preferences.
// 设置字体和大小,必须在Settings-User里重写,这里设置没有任何效果
“font_face”: “Consolas”,
“font_size”: 12,
// Valid options are “no_bold”, “no_italic”, “no_antialias”, “gray_antialias”,
// “subpixel_antialias” and “no_round” (OS X only)
// 字体选项:no_bold不显示粗体字,no_italic不显示斜体字,no_antialias和no_antialias关闭反锯齿
// subpixel_antialias和no_round是OS X系统独有的
“font_options”: [],
// Characters that are considered to separate words
// 在文字上双击会全选当前的内容,如果里面出现以下字符,就会被截断
“word_separators”: “./\\()\”‘-:,.;<>~!@#$%^&*|+=[]{}`~?”,
// Set to false to prevent line numbers being drawn in the gutter
// 是否显示行号
“line_numbers”: true,
// Set to false to hide the gutter altogether
// 是否显示行号边栏
“gutter”: true,
// Spacing between the gutter and the text
// 行号边栏和文字的间距
“margin”: 4,
// Fold buttons are the triangles shown in the gutter to fold regions of text
// 是否显示代码折叠按钮
“fold_buttons”: true,
// Hides the fold buttons unless the mouse is over the gutter
// 不管鼠标在不在行号边栏,代码折叠按钮一直显示
“fade_fold_buttons”: true,
// Columns in which to display vertical rulers
//列显示垂直标尺,在中括号里填入数字,宽度按字符计算
“rulers”: [],
// Set to true to turn spell checking on by default
// 是否打开拼写检查
“spell_check”: false,
// The number of spaces a tab is considered equal to
// Tab键制表符宽度
“tab_size”: 4,
// Set to true to insert spaces when tab is pressed
// 设为true时,缩进和遇到Tab键时使用空格替代
“translate_tabs_to_spaces”: false,
// If translate_tabs_to_spaces is true, use_tab_stops will make tab and
// backspace insert/delete up to the next tabstop
// translate_tabs_to_spaces设置为true,Tab和Backspace的删除/插入作用于制表符宽度
// 否则作用于单个空格
“use_tab_stops”: true,
// Set to false to disable detection of tabs vs. spaces on load
// false时禁止在载入的时候检测制表符和空格
“detect_indentation”: true,
// Calculates indentation automatically when pressing enter
// 按回车时,自动与制表位对齐
“auto_indent”: true,
// Makes auto indent a little smarter, e.g., by indenting the next line
// after an if statement in C. Requires auto_indent to be enabled.
//针对C语言的
“smart_indent”: false,