0

In every file in Visual Studio code is causing a new line at the end, this happens when the file is saved (autosaved) or formatted

enter image description here

Is there a way to turn this feature off, so it doesn't keep creating the final new line..

I've already tried

"files.insertFinalNewline": false,
"files.trimFinalNewlines": false,

Neither of these work, any ideas how to turn this off?

jaekie
  • 2,283
  • 4
  • 30
  • 52
  • 2
    Does whatever project your are working on have an .editorconfig file or something similar? – Timothy G. Sep 01 '23 at 17:03
  • omg how embarrassing.. yeah that was it, wont believe how long ive been trying to resolve this lol – jaekie Sep 01 '23 at 17:18
  • Hehe! Consider closing this as a dupe of https://stackoverflow.com/questions/65758898/how-can-i-disable-auto-new-line-in-visual-studio-code – Timothy G. Sep 01 '23 at 17:21
  • Does this answer your question? [How can I disable auto new-line in Visual Studio Code?](https://stackoverflow.com/questions/65758898/how-can-i-disable-auto-new-line-in-visual-studio-code) – starball Sep 01 '23 at 19:09

0 Answers0