A Developer asked on Stackoverflow platform : –
When saving a file using Visual Studio Code, a newline is not automatically added to the end of the file, causing all sorts of potential issues. How can I append a newline automatically in Visual Studio Code?
The solution to this problem is simple:
Go to File → Preference → Settings → search for “newline”:
Check the “Insert final newline” option – “When enabled, insert a final new line at the end of the file when saving it”.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?