Skip to content

Instantly share code, notes, and snippets.

@wzup
Last active June 9, 2021 14:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save wzup/ed7720d3729a0ec7c4f3 to your computer and use it in GitHub Desktop.
Save wzup/ed7720d3729a0ec7c4f3 to your computer and use it in GitHub Desktop.
.editorconfig file example
# ВСЕ СВОЙСТВА СМ. ВНИЗУ ФАЙЛА
# или здесь с описанием https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
#
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80
# [*]
# [*.{js,py}]
# [*.py]
# [Makefile]
# [lib/**.js]
# [{package.json,.travis.yml}]
# Universal Properties - те, что для всех форматов файлов
#
# indent_style = space # tab | space
# indent_size = 4 # int | tab
# tab_width = 4 # a positive integer (defaults indent_size when indent_size is a number)
# end_of_line = lf # lf | cr | lf
# charset = utf-8 # latin1 | utf-8 | utf-16be | utf-16le
# trim_trailing_whitespace = true # true | false
# insert_final_newline = true | false
# max_line_length = 80 # positive int, only emax or vim
# Domain-Specific Properties - The following properties are not intended to be implemented by EditorConfig.
# This is simply a brainstorm of domain-specific properties that could be supported
# by some tools that rely on EditorConfig files.
#
# single | double | auto
# quote_type =
# domain: C-family languages (such as C, C++, D, Objective-C, etc.)
# c_include_path =
# domain: java
# java_class_path = # domain: java
# true | fasle, domnain: C-family languages (such as C, C++, Java, Javascript, etc.)
# curly_bracket_next_line =
# true | false | hybrid
# spaces_around_operators =
# none | inside | outside | both
# spaces_around_brackets =
# K&R | Allman | GNU | Horstmann, domain: C-family languages (such as C, C++, Java, Javascript, etc.) with code blocks using curly braces
# indent_brace_style =
# int, domain: JetBrains (IntelliJ IDEA)
# continuation_indent_size =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment