From 2681c02afd687960a8323bf725d5f13406dde0e9 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 27 Jun 2022 23:43:56 +0200 Subject: [PATCH] .editorconfig: add editor settings for most editors This should automatically set the tab size to 8 spaces and add a visual guide (ruler) at 80 characters in GoLand, GitHub and a few other editors. --- .editorconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..110b5c216a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# Top-most EditorConfig file. +root = true + +# Unix-style newlines with a newline ending every file. +[*.md] +end_of_line = lf +insert_final_newline = true +max_line_length = 80 + +# 8 space indentation for Golang code. +[*.go] +indent_style = tab +indent_size = 8 +max_line_length = 80