Procházet zdrojové kódy

VSCode: ensure that text files are properly terminated per POSIX standard.

Text files should always end with a newline, so that all lines are complete
and simplistic tools do not skip the last line.
VSCode seems to apply this by default to py, but not to json files.
Jason Rumney před 2 roky
rodič
revize
72dca9981e
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      .vscode/settings.json

+ 2 - 1
.vscode/settings.json

@@ -4,6 +4,7 @@
   "editor.formatOnType": true,
   "editor.formatOnType": true,
   "files.eol": "\n",
   "files.eol": "\n",
   "files.trimTrailingWhitespace": true,
   "files.trimTrailingWhitespace": true,
+  "files.insertFinalNewline": true,  
   "python.linting.pylintEnabled": true,
   "python.linting.pylintEnabled": true,
   "python.linting.enabled": true,
   "python.linting.enabled": true,
   "python.formatting.provider": "black",
   "python.formatting.provider": "black",
@@ -11,4 +12,4 @@
   "python.testing.pytestEnabled": true,
   "python.testing.pytestEnabled": true,
   "pylint.importStrategy": "fromEnvironment",
   "pylint.importStrategy": "fromEnvironment",
   "python.linting.lintOnSave": true,
   "python.linting.lintOnSave": true,
-}
+}