From eec647752d117e22b43478191d604029d18b500f Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Thu, 22 Sep 2022 10:28:46 -0400 Subject: [PATCH] Add EditorConfig files This sets the indentation size of various filetypes common in this project. The preferred tab width for tab-indented files is unknown, so TODO comments have been left there. This helps keep uniform behavior in any text editor that has EditorConfig enabled. Additionally, the tab width provided for color scheme files makes it easier to align hex values when editing a file manually. --- .editorconfig | 39 +++++++++++++++++++++ tabby-community-color-schemes/.editorconfig | 3 ++ 2 files changed, 42 insertions(+) create mode 100644 .editorconfig create mode 100644 tabby-community-color-schemes/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..1cc52a73 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,39 @@ +root = true + +[*] +end_of_line = LF +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.sln] +indent_style = tab +# TODO Determine if there is a preferred tab width for this file type + +# Programming/Scripts +[*.{js,ts}] +indent_style = space +indent_size = 4 + +[*.cpp] +indent_style = tab +# TODO Determine if there is a preferred tab width for this file type + +# Markup +[*.pug] +indent_style = space +indent_size = 4 + +# Stylesheets +[*.scss] +indent_style = space +indent_size = 4 + +# Data Files +[*.json] +indent_style = space +indent_size = 2 + +[*.{yaml,yml}] +indent_style = space +indent_size = 2 diff --git a/tabby-community-color-schemes/.editorconfig b/tabby-community-color-schemes/.editorconfig new file mode 100644 index 00000000..d4db951e --- /dev/null +++ b/tabby-community-color-schemes/.editorconfig @@ -0,0 +1,3 @@ +[schemes/*] +indent_style = space +indent_size = 15