-
Notifications
You must be signed in to change notification settings - Fork 117
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
insert_final_newline = false
not working
#349
Comments
Same here, very annoying. |
As a workaround, the user can enable the global VSCode However, that has poor integration with EditorConfig. And, if you happen to be working on text fixtures, then you cannot adjust this setting on a per directory basis. You're stuck with either over-sanitized test fixture files, or else under-sanitized source code files. |
@mcandre {
"[javascript]": {
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
},
"[markdown]": {
"files.insertFinalNewline": false
"files.trimFinalNewlines": false
},
} Per-directory can be achieved too but only for vscode, by creating |
I have it too: Please fix this or at least mention in the readme too. |
I am not a fan of configuring text editors. I float between several. I specifically use EditorConfig to avoid this problem. If I wanted to perform the configuration with VSCode, then I wouldn't be using EditorConfig. |
Same problem. Please fix it 😭😭 |
Please fill-in this template.
code --disable-extensions
and the issue did NOT present itself.Issue
On Windows 11
1.76.1
0.16.4
Root
.editorconfig
FileAre there any other relevant
.editorconfig
files in your project? Noeditor.insertSpaces
true
____
____
editor.tabSize
4
_
_
editor.trimAutoWhitespace
true
____
____
files.autoSave
"off"
"___"
"___"
files.insertFinalNewline
false
_____
_____
files.trimTrailingWhitespace
false
_____
_____
File opened
Any file
Expected behavior
Without adding final new line automatically when
insert_final_newline = false
Actual behavior
Always adding final new line automatically
The text was updated successfully, but these errors were encountered: