I don't know why my code is auto formatted on save and for some reason changing the layout. I figured out this was due to auto format on save. How do I turn this off in Visual Studio Code?
Here are the some basics steps to be followed to turn off auto complete.
Press Ctrl + Shift + P to open Command Palette. Then screen like below image appears.
Type Save without formatting
and click the matching option available. It either commands on click or redirects you to next interface.
If it works on click then it's fine and if you are redirected to next screen just uncheck auto format option under onsave. For me it worked on cick to the shown command.
CMD + K and then S