Skip to content

Commit

Permalink
.editorconfig: add editor settings for most editors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guggero committed Jul 6, 2022
1 parent d20140e commit 2681c02
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2681c02

Please sign in to comment.