zoukankan      html  css  js  c++  java
  • 代码交换格式控制(editorconfig)

    在之前格式配置的编辑器中,设置通用的代码格式。

    sublime text支持 editorconfig。

    设置,保存为.editroconfig。

    # editorconfig the root for search edit cofig file
    ## http://editorconfig.org/
    ## you can use # or ; to say this line is a comment.
    root = true ; top-most editorconfig file
    
    # unix-style newlines with a newline ending every file
    [*]
    # set to lf, cr, or crlf to control how line breaks are represented
    end_of_line = lf
    insert_final_newline = true
    
    # set to tab or space to use hard tabs or soft tabs respectively
    indent_style = space
    
    # set to latin1, utf-8, utf-8-bom, utf-16be or utf-16le
    # to control the character set. Use of utf-8-bom is discouraged.
    charset = utf-8
    
    # set to true to remove any whitespace characters preceeding newline characters
    trim_trailing_whitespace = true
    
    # default indent is 4
    # a whole number defining the number of columns used for each indentation level
    # and the width of soft tabs (when supported).
    # When set to tab, the value of tab_width (if specified) will be used
    indent_size = 4
    
    # space indentent
    [*.js]
    indent_size = 2
  • 相关阅读:
    登录Mysql看不到Mysql库
    七牛云使用记录
    FFmpeg工具
    解决VMware下CentOS连不上网络问题
    14.中介者模式
    二十三种设计模式(三)
    23种设计模式(二)
    搭建ssm环境
    文件的字符流与字节流读写
    设计模式之用工厂模式实现计算器
  • 原文地址:https://www.cnblogs.com/zhng/p/3056280.html
Copyright © 2011-2022 走看看