From 20ac8bf83eeb317b361e65980a73fe15ce1d3d9d Mon Sep 17 00:00:00 2001 From: Tyndie Date: Wed, 12 Apr 2017 09:59:50 +0100 Subject: [PATCH] Set .go tab size to 4 in .editorconfig (#8099) Tab size was added as 2 in .editorconfig but a tab size of 4 is used throughout go code base. This can cause editors such as vscode to automatically reformat open .go files to tab size 2 from 4. --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 3701d80b453..386c27fceb8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,7 +3,7 @@ root = true [*.go] indent_style = tab -indent_size = 2 +indent_size = 4 charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true