Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b29b15

Browse files
authored
chore: enable files.insertFinalNewline in vscode (#518)
Ensures there's always a newline at the end of files. They seem to be randomly missing, which cause weird diffs.
1 parent 01ab487 commit 3b29b15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
"files.exclude": {
6262
"**/node_modules": true
6363
},
64+
// Ensure files always have a newline.
65+
"files.insertFinalNewline": true,
6466
"go.lintTool": "golangci-lint",
6567
"go.lintFlags": ["--fast"],
6668
"go.lintOnSave": "package",
@@ -79,5 +81,5 @@
7981
},
8082
// We often use a version of TypeScript that's ahead of the version shipped
8183
// with VS Code.
82-
"typescript.tsdk": "./site/node_modules/typescript/lib"
84+
"typescript.tsdk": "./site/node_modules/typescript/lib",
8385
}

0 commit comments

Comments
 (0)