您当前的位置: 首页 > 

彭世瑜

暂无认证

  • 2浏览

    0关注

    2791博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

.editorconfig文件

彭世瑜 发布时间:2020-04-06 18:57:12 ,浏览量:2

editorconfig

.editorconfig文件

EditorConfig帮助开发人员在不同的编辑器和IDE之间定义和维护一致的编码样式

adonisjs项目中的一个示例

root = true

[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

常规配置

# http://editorconfig.org
root = true

# 对所有文件生效
[*]
# utf-8编码
charset = utf-8
# 空格形式缩进2空格
indent_style = space
indent_size = 2
# Linux换行符
end_of_line = lf
# 使用单引号
quote_type = single
# 结尾插入新行
insert_final_newline = true
# 去除结尾空格
trim_trailing_whitespace = true

# 对后缀名为 md 的文件生效
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

VSCode 插件: EditorConfig for VS Code

关注
打赏
1665367115
查看更多评论
立即登录/注册

微信扫码登录

0.2547s