2

The problem is after I've installed the Angular extension in Visual Studio Code, I constantly get across all files (.ts, .html, and .css) auto new-line after typing single letters or multiple lines of code. It's frustrating. I disabled prettier, word-wrap, and intellisense, but the problem still remains.

Is there a way I can disable it?

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
ahsibob
  • 21
  • 1
  • 2
  • Can you give an example of what you type and when/where it adds the newline? – T.J. Crowder Jan 17 '21 at 09:10
  • is the typed line is the last line in VS code? – Onkar Jan 17 '21 at 09:13
  • 1
    I type 'e' it goes new line...i type 'export' it goes new line...it's doing it in every file type. 'Insert New Line At the End Of File' is disabled – ahsibob Jan 17 '21 at 10:25
  • Possible duplicate: *[Visual Studio Code — Insert New Line at the End of Files](https://stackoverflow.com/questions/44704968/visual-studio-code-insert-new-line-at-the-end-of-files)* – Peter Mortensen May 11 '22 at 00:06

2 Answers2

2

I had the same problem.

After going through my extensions, I noticed that the "EditorConfig for VS Code" extension I installed was inserting auto new-line after typing single or multiple lines of code.

If the problem is still not solved, try disabling some extensions and see if that works.

Jasper
  • 1,195
  • 8
  • 22
Akki
  • 21
  • 1
  • 5
-3

Just disable the auto save option in VSC.

  • *How* is that achieved? Please respond by [editing (changing) your answer](https://stackoverflow.com/posts/68210989/edit), not here in comments (***without*** "Edit:", "Update:", or similar - the answer should appear as if it was written today). – Peter Mortensen May 11 '22 at 00:08