美文网首页程序员
editorconfig配置文件实例

editorconfig配置文件实例

作者: fxm5547 | 来源:发表于2018-01-19 22:03 被阅读162次

    首发于fxm5547的博客

    .editorconfig文件示例

    .editorconfig是一个可以制定统一规范的配置文件,绝大多数代码编辑器都已经支持。

    # http://editorconfig.org
    
    # A special property that should be specified at the top of the file outside of
    # any sections. Set to true to stop .editor config file search on current file
    root = true
    
    [*]
    # Indentation style
    # Possible values - tab, space
    indent_style = space
    
    # Indentation size in single-spaced characters
    # Possible values - an integer, tab
    indent_size = 2
    
    # Line ending file format
    # Possible values - lf, crlf, cr
    end_of_line = lf
    
    # File character encoding
    # Possible values - latin1, utf-8, utf-16be, utf-16le
    charset = utf-8
    
    # Denotes whether to trim whitespace at the end of lines
    # Possible values - true, false
    trim_trailing_whitespace = true
    
    # Denotes whether file should end with a newline
    # Possible values - true, false
    insert_final_newline = true
    
    

    相关文章

      网友评论

        本文标题:editorconfig配置文件实例

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