From f199750f7d83c3de98b399592e9a34a27d198913 Mon Sep 17 00:00:00 2001 From: Brandon Rodriguez <brodriguez8774@gmail.com> Date: Fri, 6 Nov 2020 21:08:38 -0500 Subject: [PATCH] Create different config files for different languages --- languages/c.editor_config | 37 +++++++++++++++++++ languages/c_sharp.editorconfig | 37 +++++++++++++++++++ ...rpose.editorconfig => django.editorconfig} | 6 +-- languages/python.editorconfig | 37 +++++++++++++++++++ 4 files changed, 114 insertions(+), 3 deletions(-) create mode 100644 languages/c.editor_config create mode 100644 languages/c_sharp.editorconfig rename languages/{general_purpose.editorconfig => django.editorconfig} (85%) create mode 100644 languages/python.editorconfig diff --git a/languages/c.editor_config b/languages/c.editor_config new file mode 100644 index 0000000..050691c --- /dev/null +++ b/languages/c.editor_config @@ -0,0 +1,37 @@ +### + # EditorConfig file for C/C++ Language projects. + # See https://editorconfig.org/ for documentation. + # + # https://git.brandon-rodriguez.com/other/editorconfig + # Version 1.0 + ## + + +# Stop editorconfig from searching further above current directory. +root = true + + +### + # Default styles for all files. + ## +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + + +### + # Tab styles that should be four spaces per tab. + # Most languages will fall under this. + ## +[*.{c,cc,cpp,h,json,md,o}] +indent_size = 4 + + +### + # Tab styles that should be two spaces per tab. + # Only very nested languages should be put here. + ## +# None so far. diff --git a/languages/c_sharp.editorconfig b/languages/c_sharp.editorconfig new file mode 100644 index 0000000..34d9aec --- /dev/null +++ b/languages/c_sharp.editorconfig @@ -0,0 +1,37 @@ +### + # EditorConfig file for C# Language projects. + # See https://editorconfig.org/ for documentation. + # + # https://git.brandon-rodriguez.com/other/editorconfig + # Version 1.0 + ## + + +# Stop editorconfig from searching further above current directory. +root = true + + +### + # Default styles for all files. + ## +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + + +### + # Tab styles that should be four spaces per tab. + # Most languages will fall under this. + ## +[*.{cs,json,md,xml}] +indent_size = 4 + + +### + # Tab styles that should be two spaces per tab. + # Only very nested languages should be put here. + ## +# None so far. diff --git a/languages/general_purpose.editorconfig b/languages/django.editorconfig similarity index 85% rename from languages/general_purpose.editorconfig rename to languages/django.editorconfig index 4f008a6..b187021 100644 --- a/languages/general_purpose.editorconfig +++ b/languages/django.editorconfig @@ -1,9 +1,9 @@ ### - # General purpose EditorConfig file. + # EditorConfig file for Django Framework projects. # See https://editorconfig.org/ for documentation. # # https://git.brandon-rodriguez.com/other/editorconfig - # Version 1.0.1 + # Version 1.0 ## @@ -26,7 +26,7 @@ trim_trailing_whitespace = true # Tab styles that should be four spaces per tab. # Most languages will fall under this. ## -[*.{c,css,h,js,json,py,scss,sh}] +[*.{css,js,json,md,py,scss,sh,yaml}] indent_size = 4 diff --git a/languages/python.editorconfig b/languages/python.editorconfig new file mode 100644 index 0000000..4af77b1 --- /dev/null +++ b/languages/python.editorconfig @@ -0,0 +1,37 @@ +### + # EditorConfig file for Python Language projects. + # See https://editorconfig.org/ for documentation. + # + # https://git.brandon-rodriguez.com/other/editorconfig + # Version 1.0 + ## + + +# Stop editorconfig from searching further above current directory. +root = true + + +### + # Default styles for all files. + ## +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + + +### + # Tab styles that should be four spaces per tab. + # Most languages will fall under this. + ## +[*.{json,md,py}] +indent_size = 4 + + +### + # Tab styles that should be two spaces per tab. + # Only very nested languages should be put here. + ## +# None so far. -- GitLab