Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

XBagon
Copy link

@XBagon XBagon commented Jun 13, 2023

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
Copy link
Member

HUMORCE commented Jun 18, 2023

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
Copy link
Contributor

microsoft/vscode#19281 (comment)

use this "files.insertFinalNewline": true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants