chore: edit code format config (#3578)

This commit is contained in:
CXM 2022-03-26 19:41:25 +08:00 committed by GitHub
parent eaa10a19de
commit f89d638de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 1 deletions

View File

@ -17,10 +17,16 @@ indent_size = 4
trim_trailing_whitespace = false trim_trailing_whitespace = false
insert_final_newline = 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. # C coding style based on Linux kernel.
# https://www.kernel.org/doc/html/v5.0/process/coding-style.html # https://www.kernel.org/doc/html/v5.0/process/coding-style.html
[*.sh] [[{*.sh,*.inc}]]
indent_style = tab indent_style = tab
indent_size = 4 indent_size = 4

6
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"recommendations": [
"editorconfig.editorconfig",
"foxundermoon.shell-format"
]
}

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"[*.inc]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}