ScoopInstaller / BucketTemplate

Template Bucket for Scoop Installer
The Unlicense
101 stars 47 forks source link

set json format to keep new lines in vscode settings #10

Closed XBagon closed 3 weeks ago

XBagon commented 1 year ago

When json.format.keepLines is set to false in the global VSCode settings it clashes with the .editorconfig option insert_final_newline = true and the line gets removed again directly after automatic insertion. Setting "json.format.keepLines" = "true" in the workspace settings fixes this.

HUMORCE commented 1 year ago
1| {
2|   "name": "foo",
3| 
4|   "age": 1
5| 
6| }
7| 
8| 

L3, 5, 7, 8 cannot be formatted, when this config item enabled.

qianlongzt commented 4 weeks ago

https://github.com/microsoft/vscode/issues/19281#issuecomment-275242735

use this "files.insertFinalNewline": true