Skip to content

Commit 72dca99

Browse files
committed
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.
1 parent 4c872f2 commit 72dca99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
"editor.formatOnType": true,
55
"files.eol": "\n",
66
"files.trimTrailingWhitespace": true,
7+
"files.insertFinalNewline": true,
78
"python.linting.pylintEnabled": true,
89
"python.linting.enabled": true,
910
"python.formatting.provider": "black",
1011
"black-formatter.importStrategy": "fromEnvironment",
1112
"python.testing.pytestEnabled": true,
1213
"pylint.importStrategy": "fromEnvironment",
1314
"python.linting.lintOnSave": true,
14-
}
15+
}

0 commit comments

Comments
 (0)