My code automatically goes to another line in VS-Code after I type anything. How do i fix this issue?

Viewed 1107

How do i fix this problem of VS-Code in which it automatically jumps to next line after i type in one letter. Here is the example of the problem in the image It automatically goes into next line without the pressing the enter key. How do I solve this issue?This is the problem jumping into next line

2 Answers

You can just disable autosave and that will stop it from jumping to next line.

there might be several reasons.

  • you may want to check the settings below; files.insertFinalNewline
  • there might be an extension settings / such as eslint, prettier, etc.
Related