Jovana M.
Jovana M.

Reputation: 13

Bug in Visual Studio Code, one line of code splits in more lines when I press save

I have this problem few weeks, I tried many tings in settings to fix this, but nothing works. Whatever I press save, it split code in more lines, like in the example in photo. What should i do? Here is some examples: 1, 2.

Upvotes: 1

Views: 838

Answers (1)

ababak
ababak

Reputation: 1793

There is an option "format on save" that reformats your document. The resulting formatting looks nice so I am not sure what's the problem. If you want to switch it off, press Ctrl, to open preferences, type "format on save" to find the option and switch off the checkbox.

Upvotes: 1

Related Questions