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
Provide an option to insert a final newline #1666
Comments
If the file already has multiple empty lines at the end, it would be great to trim all but the last one. |
This extension implements this: https://marketplace.visualstudio.com/items?itemName=samverschueren.final-newline I still think this should be available in VS Code itself and enabled by default :) |
editorconfig-vscode addressed my concern. |
@sarbbottam Don't you think that this essential feature should be part of the core? |
It would be good to have it as part of the core. On Fri, Apr 29, 2016, 2:59 AM Jan Niklas Hasse notifications@github.com
|
Can you reopen this issue to keep track of it? Thanks :) |
Provide an option to insert a final newline (fixes #1666)
Added |
Thanks! |
Hi. |
with the extension blank line is not working. The code seems to undergo infinite loop where the new line adds and gets removed automatically, and I cannot save the file. Also with the insert_final_newline: true option in the settings, the js files does not have a blank line at the end of the file. |
"files.insertFinalNewline" = true |
Hey @ronak1009 ! If you'll take another look, notice that your VSCode preferences are in a file named settings.json, so you'll need to set that value to true using JSON syntax with a colon instead of an equals sign, like this: "files.insertFinalNewline": true Verified that this is working in my copy of VSCode 1.12.1 which matches yours 👍 |
EDIT: Found the culprit. It was the I'm not able to get this setting working either, on Ubuntu 1.12.1. My user settings look like this:
and my workspace settings look like this:
When I press |
@bpasero I just tried this, but it doesn't trim extraneous lines. It'd be nice if either there was an option for that too or if |
Visual Studio Code version 1.12.2 Obviously the problem is still not solved |
With parameter "files.insertFinalNewline": true |
Any update on this issue regarding editorconfig vscode + |
Something similar to
insert_final_newline = true
.The text was updated successfully, but these errors were encountered: