Bug 24774: Set JSON indentation of 2 spaces in .editorconfig
authorLari Taskula <lari.taskula@hypernova.fi>
Mon, 2 Mar 2020 09:18:26 +0000 (09:18 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 19 Mar 2020 09:24:52 +0000 (09:24 +0000)
To test:
1. Start an editor that supports .editorconfig
2. Open or create a JSON file
3. Observe identation is set to 2 spaces by default

Sponsored-by: Hypernova Oy
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

.editorconfig

index 95c4e45..569457e 100644 (file)
@@ -10,3 +10,6 @@ indent_style = space
 indent_size = 4
 # New files charset should be UTF-8
 charset = utf-8
+
+[*.json]
+indent_size = 2