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
  • 相关阅读:
    移动端字体单位
    我像素的理解
    了解viewport概念
    移动端知识
    本地存储和会话存储
    一屏滚动滚轮事件
    关于jquery的笔记
    关于bind()方法
    [css] 滚动条样式问题
    [element-ui] 表格功能实现(删除选中)
  • 原文地址:https://www.cnblogs.com/zhng/p/3056280.html
Copyright © 2011-2022 走看看