Sfoglia il codice sorgente

chore: edit code format config (#3578)

CXM 3 anni fa
parent
commit
f89d638de3
3 ha cambiato i file con 18 aggiunte e 1 eliminazioni
  1. 7 1
      .editorconfig
  2. 6 0
      .vscode/extensions.json
  3. 5 0
      .vscode/settings.json

+ 7 - 1
.editorconfig

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

+ 6 - 0
.vscode/extensions.json

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

+ 5 - 0
.vscode/settings.json

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