Good Day!
Help me, please.
This is My code. When I click CTRL+S, or click "Save All", or "Save", My Visual Studio Code format my all documents like ALT+SHIFT+F... But, I didnt click this fuction. And my CSS, or HTML code after Click button "Save". How can you see, my big code Looks terrible. How to remove this function?
Thank you in advance.
The solution was to go to 'Tools > Options > Text Editor > Basic > VB Specific' and turn 'Pretty Listing' OFF. Save this answer.
As long as your code is syntactically correct (i.e. no stray brackets or End Ifs without matching Ifs), Visual Studio will reformat your whole file with one key chord: Hold down the Control key and then press K, followed by D. Boom! Everything looks pretty again.
VS Code has great support for source code formatting. The editor has two explicit format actions: Format Document (Ctrl+Shift+I) - Format the entire active file. Format Selection (Ctrl+K Ctrl+F) - Format the selected text.
I had this same issue and that problem is caused by the extension "JS-CSS-HTML Formatter".I uninstalled it and then it works! Hope it helps someone!
Go to setting (Ctrl + ,) and change editor.formatOnSave from true to false: "editor.formatOnSave": false,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With