Created
August 17, 2023 09:04
-
-
Save Hrissimir/6b11541cdcdfcc0e52742f066d2260e8 to your computer and use it in GitHub Desktop.
Personal .editorconfig settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ====================================================================================================================== | |
# EditorConfig is awesome: https://EditorConfig.org | |
# ---------------------------------------------------------------------------------------------------------------------- | |
# | |
# Must be specified in the preamble. Set to "true" to stop the .editorconfig file search on the current file. The value is case insensitive. | |
# root = true | |
# | |
# 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 "lf", "cr", or "crlf" to control how line breaks are represented. The values are case insensitive. | |
# end_of_line = lf | |
# | |
# Set to a whole number defining the number of columns used to represent a tab character. | |
# This defaults to the value of indent_size and should not usually need to be specified. | |
# tab_width = 4 | |
# | |
# Set to "true" to remove all whitespace characters preceding newline characters in the file and "false" to ensure it doesn’t. | |
# trim_trailing_whitespace = true | |
# | |
# Set to "true" ensure file ends with a newline when saving and "false" to ensure it doesn’t. | |
# insert_final_newline = true | |
# | |
# Set to "tab" or "space" to use hard tabs or soft tabs respectively. The values are case insensitive. | |
# indent_style = space | |
# | |
# Set to a whole number defining the number of columns used for each indentation level and the width of soft tabs (when supported). | |
# If this equals tab, the indent_size shall be set to the tab size, which should be tab_width (if specified); else, the tab size set by the editor. | |
# The values are case insensitive. | |
# indent_size = 4 | |
# | |
# Forces hard line wrapping after the amount of characters specified. "off" to turn off this feature (use the editor settings). | |
# max_line_length = 120 | |
# ====================================================================================================================== | |
root = true | |
[*] | |
charset = utf-8 | |
tab_width = 4 | |
indent_size = 4 | |
indent_style = space | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
[{*.{awk,bat,c,cpp,cmd,d,dasc,git*,h,l,mak,mk,ps1,re,skl,w32,y},*[Mm]akefile*}] | |
indent_size = 4 | |
indent_style = tab | |
[*.{bat,cmd,ps1}] | |
end_of_line = crlf | |
[*.{dtd,html,inc,php,phpt,rng,wsdl,xml,xsd,xsl}] | |
indent_size = 4 | |
indent_style = space | |
[{*.{_,rb,sh,yml,yaml},Jenkinsfile,Rakefile}] | |
indent_size = 2 | |
indent_style = space | |
[_*] | |
tab_width = 2 | |
[*.properties] | |
indent_size = 4 | |
indent_style = space | |
charset = latin1 | |
insert_final_newline = false | |
trim_trailing_whitespace = false | |
[*.{rst,md,markdown}] | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = false | |
trim_trailing_whitespace = false | |
[*.{css,scss,js,ts,vue}] | |
indent_size = 2 | |
indent_style = space | |
[*.json] | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = false | |
trim_trailing_whitespace = false | |
[*.sql] | |
indent_size = 2 | |
indent_style = tab | |
[**/{test,tests}/**] | |
charset = unset | |
tab_width = unset | |
indent_size = unset | |
indent_style = unset | |
end_of_line = unset | |
insert_final_newline = unset | |
trim_trailing_whitespace = unset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment