redhat-developer / vscode-xml

Editing XML in Visual Studio Code made easy
Eclipse Public License 2.0
254 stars 79 forks source link

[EditorConfig] Respect what's from it before applying local user rules #904

Open tebeco opened 1 year ago

tebeco commented 1 year ago

here one among other examples:

[*]
insert_final_newline = true

I don't think "preserver blank line" or "preserve line return" are a match here. Because one could accept a file trimming, but that last line, especially for git and being a dedicated .editorconfig has a completely different meaning.

Is there a setting in the extension to prevent the removal of the empty last line?

danielwerg commented 1 year ago

Is there a setting in the extension to prevent the removal of the empty last line?

Not in extension but there is vscode setting: files.insertFinalNewline