sublime text 2 插件配置整理
具体以后再另写,先附上链接:
配置全攻略
SubLime BracketHighlighter是很好的配色高亮插件,配置方法:
SubLime BracketHighlighter 配置
Linux下将sublime text固定到启动器:
把Sublime Text 2固定到Ubuntu启动器
(注意:运行文件路径有空格要加双引号,图标Icon的路径不用加双引号)
比较喜欢的主题FlatLand-Monokai:
(在Package Control中搜索FlatLand安装后在Theme中更改即可)
—————分割线————
Sublimelinter(php错误提示插件)配置:
Linux下:
在该插件的设置里setting-user输入以下代码即可实现错误提示
(但Linux下popup好像弹不出来?)1
2
3
4
5
6{
"sublimelinter_executable_map" : {
"php" : "/usr/bin/php"
},
"sublimelinter_gutter_marks" : true
}
不过可以使用快捷键来查看并定位错误:
显示下一个错误: ctrl+alt+E,
显示上一个错误: ctrl+alt+shift+E
列出错误:
Control+Shift+P 呼出命名列表, 选择 SublimeLinter: Show Error List
windows下:
{
"sublimelinter": "save-only", //在保存时提示
"sublimelinter_popup_errors_on_save": true, //弹出提示,可直接定位到错误位置
"sublimelinter_gutter_marks": true,
"sublimelinter_delay": 1,
"sublimelinter_executable_map":
{
"php":"E:\\Program\\phpStudy\\php53\\php.exe"
// "javascript":"D:/nodejs/node.exe",
// "css":"D:/nodejs/node.exe"
},
"jshint_options":
{
"strict": true,
"noarg": true,
"noempty": true,
"eqeqeq": true,
"undef": true,
"curly": true,
"forin": true,
"devel": true,
"jquery": true,
"browser": true,
"wsh": true,
"evil": true
},
"csslint_options":
{
"adjoining-classes": "warning",
"box-model": true,
"box-sizing": "warning",
"compatible-vendor-prefixes": "warning",
"display-property-grouping": true,
"duplicate-background-images": "warning",
"duplicate-properties": true,
"empty-rules": true,
"errors": true,
"fallback-colors": "warning",
"floats": "warning",
"font-faces": "warning",
"font-sizes": "warning",
"gradients": "warning",
"ids": "warning",
"import": "warning",
"important": "warning",
"known-properties": true,
"outline-none": "warning",
"overqualified-elements": "warning",
"qualified-headings": "warning",
"regex-selectors": "warning",
"rules-count": "warning",
"shorthand": "warning",
"star-property-hack": "warning",
"text-indent": "warning",
"underscore-property-hack": "warning",
"unique-headings": "warning",
"universal-selector": "warning",
"vendor-prefix": true,
"zero-units": "warning"
}
}