.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:
1 file changed
+16
@@ -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
|
||||
Reference in new issue
Block a user