美文网首页
atom 插件 EditorConfig 样式美化

atom 插件 EditorConfig 样式美化

作者: Cherish_4895 | 来源:发表于2017-08-20 16:50 被阅读0次

我们在 Atom 上安装一个叫EditorConfig的插件,在进行团队协作开发时,这个插件能起到很大作用。安装完成之后,我们需要在 Laravel 应用的根目录下添加.editorconfig文件,并写入如下的配置信息。

.editorconfig


# coding styles between different editors and IDEs

# editorconfig.org

root=true

[*]

# Change these settings to your own preference

indent_style=space

indent_size=4

# We recommend you to keep these unchangedend_of_line=lf

charset=utf8

trim_trailing_whitespace=true 

insert_final_newline=false

[*.{js,html,blade.php,css,scss}]

indent_style=space

indent_size=2

[*.md]

trim_trailing_whitespace=false


接着让我们将该文件加入到版本控制中。

$gitadd -A$gitcommit -m"Add .editorconfig"

相关文章

网友评论

      本文标题:atom 插件 EditorConfig 样式美化

      本文链接:https://www.haomeiwen.com/subject/oxifdxtx.html