Skip to content

Commit

Permalink
chore: edit code format config (armbian#3578)
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecxm authored Mar 26, 2022
1 parent eaa10a1 commit f89d638
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ indent_size = 4
trim_trailing_whitespace = false
insert_final_newline = false

[*.json]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

# C coding style based on Linux kernel.
# https://www.kernel.org/doc/html/v5.0/process/coding-style.html

[*.sh]
[[{*.sh,*.inc}]]
indent_style = tab
indent_size = 4

Expand Down
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"editorconfig.editorconfig",
"foxundermoon.shell-format"
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"[*.inc]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}

0 comments on commit f89d638

Please sign in to comment.