【发布时间】:2014-08-16 11:55:51
【问题描述】:
我习惯于在我的项目的根目录中使用 .editorconfig 文件,而这个文件与 phpstorm 配合得很好。但由于某些原因,我无法在 Mac OSX 小牛上使用 Sublime Text 2。
Sublime 2.0.2 build 2221
我在这里尝试了官方 editorconfig 软件包安装 https://sublime.wbond.net/packages/EditorConfig 使用控制台和手动但在重新启动 Sublime 甚至我的 Mac 后没有任何变化:
Sublime 只对所有缩进使用他的默认设置。
知道我应该检查什么吗?我被卡住了。
这是我的 .editorconfig 文件供参考:
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
# 4 space indentation
[*.php]
indent_style = space
indent_size = 4
# 2 space indentation
[**.md]
indent_style = space
indent_size = 2
# 2 space indentation
[**.yaml]
indent_style = space
indent_size = 2
# Tab indentation (no size specified)
[**.js]
indent_style = tab
[**.html]
indent_style = tab
[**.less]
indent_style = tab
indent_size = 4
【问题讨论】:
标签: package sublimetext2 editorconfig