.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.
This commit is contained in:
Oliver Gugger 2022-06-27 23:43:56 +02:00
parent d20140e393
commit 2681c02afd
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

16
.editorconfig Normal file
View File

@ -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