Skip to content

Instantly share code, notes, and snippets.

@fupfin
Last active January 27, 2024 05:08
Show Gist options
  • Select an option

  • Save fupfin/60252772d1cca55225c32e4a5501c5ec to your computer and use it in GitHub Desktop.

Select an option

Save fupfin/60252772d1cca55225c32e4a5501c5ec to your computer and use it in GitHub Desktop.

Revisions

  1. fupfin revised this gist Jan 27, 2024. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion .editorconfig
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,6 @@ tab_width=8
    [*.{java,xml,py,rs}]
    indent_size = 4
    trim_trailing_whitespace = true
    tab_width = 8

    [*.{xml,yml,json}]
    indent_size = 2
  2. fupfin revised this gist Jan 27, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .editorconfig
    Original file line number Diff line number Diff line change
    @@ -8,10 +8,10 @@ insert_final_newline = true
    indent_style = space
    tab_width=8

    [*.{java,xml,py}]
    [*.{java,xml,py,rs}]
    indent_size = 4
    trim_trailing_whitespace = true
    tab_width = 4
    tab_width = 8

    [*.{xml,yml,json}]
    indent_size = 2
  3. fupfin created this gist Jan 27, 2024.
    27 changes: 27 additions & 0 deletions .editorconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    # top-most EditorConfig file
    root = true

    [*]
    charset = utf-8
    end_of_line = lf
    insert_final_newline = true
    indent_style = space
    tab_width=8

    [*.{java,xml,py}]
    indent_size = 4
    trim_trailing_whitespace = true
    tab_width = 4

    [*.{xml,yml,json}]
    indent_size = 2

    [*.{js,html,sql,less}]
    indent_size = 2

    [*.{c, cpp, h, hpp}]
    indent_size = 3
    trim_trailing_whitespace = true

    [Makefile]
    indent_style = tab