From a994830bd874a93ed912b61110e1fac1106836bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 3 Feb 2019 02:44:50 -0500 Subject: [PATCH 1/2] Make sure the editorconfig indent size applies to all file formats I was glancing at the Vue PR, and was tired of scrolling horizontally on files with a lot of levels. I first discovered the `?ts=2` query string for GitHub, but then [read here](https://stackoverflow.com/a/33831598/1935861) that it will respect the `indent_size` for tabs, which is rather nifty. --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index ac4d682b..0e5f110b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,6 +6,7 @@ root = true [*] indent_style = tab +indent_size = 2 end_of_line = lf charset = utf-8 @@ -17,4 +18,3 @@ trim_trailing_whitespace = false [*.{json,yml}] indent_style = space -indent_size = 2 From eaab4134098c16b6d095fce5914a89deaac5628a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 3 Feb 2019 03:33:42 -0500 Subject: [PATCH 2/2] Use a default of 4 spaces for viewing purposes --- .editorconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 0e5f110b..770fafd6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,7 +6,7 @@ root = true [*] indent_style = tab -indent_size = 2 +indent_size = 4 end_of_line = lf charset = utf-8 @@ -18,3 +18,4 @@ trim_trailing_whitespace = false [*.{json,yml}] indent_style = space +indent_size = 2